You are not logged in.

#1 2020-04-19 12:29:03

fetiddius
Member
Registered: 2020-04-19
Posts: 3

[SOLVED] ssh can contact other hosts, but nothing can connect to me

I've had this Arch installation for a few months now, very happy. Still kinda new to Linux but Arch is forcing me to get better quickly!

Recently started using a raspberry pi running raspbian buster to run some scripts so I ssh in to set it up. All good.

Decided to to use my phone to ssh into it too, no problems. But trying to ssh into my Arch laptop never works from anything. I get the ECONNREFUSED error.

I've configured the firewall to allow ssh on port 22 TCP.

Any ideas?

Last edited by fetiddius (2020-04-19 13:38:27)

Offline

#2 2020-04-19 12:46:36

teckk
Member
Registered: 2013-02-21
Posts: 589

Re: [SOLVED] ssh can contact other hosts, but nothing can connect to me

Do you have sshd running on the arch box?

prep sshd

https://wiki.archlinux.org/index.php/OpenSSH

Offline

#3 2020-04-19 13:30:48

fetiddius
Member
Registered: 2020-04-19
Posts: 3

Re: [SOLVED] ssh can contact other hosts, but nothing can connect to me

teckk wrote:

Do you have sshd running on the arch box?

prep sshd

https://wiki.archlinux.org/index.php/OpenSSH

I'm assuming it is as I have connected from the Archbox to the pi.

Also, the prep command doesn't work. It says command ot found.

Offline

#4 2020-04-19 13:32:29

Slithery
Administrator
From: Norfolk, UK
Registered: 2013-12-01
Posts: 5,776

Re: [SOLVED] ssh can contact other hosts, but nothing can connect to me

fetiddius wrote:

I'm assuming it is as I have connected from the Archbox to the pi.

That just means that you have an SSH server running on the Pi, it doesn't mean that you have the OpenSSH server running on the Arch machine.

Have you actually read the wiki?


No, it didn't "fix" anything. It just shifted the brokeness one space to the right. - jasonwryan
Closing -- for deletion; Banning -- for muppetry. - jasonwryan

aur - dotfiles

Offline

#5 2020-04-19 13:33:30

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,520
Website

Re: [SOLVED] ssh can contact other hosts, but nothing can connect to me

fetiddius wrote:

I'm assuming it is as I have connected from the Archbox to the pi.

If you didn't configure and start/enable it, it isn't running.  You connect with the ssh client, you need to run your own server if you want other machines to be able to connect to the laptop.

Just like running a web browser doesn't mean you are serving your own website.

Follow the wiki.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2020-04-19 13:37:53

fetiddius
Member
Registered: 2020-04-19
Posts: 3

Re: [SOLVED] ssh can contact other hosts, but nothing can connect to me

Thanks! I'm an idiot.

Last edited by fetiddius (2020-04-19 13:38:41)

Offline

Board footer

Powered by FluxBB