Hello,

My SSH connection doesn't work any more.

I have two Computers A and B, which are in the same home-network.

This morning a was still able to connect by SSH from A to B.
I did some general configuration on B so I might have messed up something,
but I have no clue what it could be, as, as far as I can remember only accessed the /usr/share folder.

Then I switched B off and worked on A. After some hours I restarted B again, but couldn't connect any more from A to B.

On A:

Code:
$ ssh myname@B
ssh: connect to host B port 22: Connection refused.
but on B:

Code:
$ ssh myname@A
works.

After some testing I rebooted both A and B, without any result.
Also disabling the firewall on both A and B didn't change anything.

Code:
$ sudo ufw disable
Pinging from A to B and vice-versa works.

On A:
Code:
$ ssh localhost
works.

But on B:
Code:
$ ssh localhost 
ssh: connect to host localhost port 22: Connection timed out
On A:
Code:
$ netstat -lnptu
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:65487           0.0.0.0:*               LISTEN      2208/wish8.5    
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      -               
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      -               
tcp6       0      0 :::139                  :::*                    LISTEN      -               
tcp6       0      0 :::22                   :::*                    LISTEN      -               
tcp6       0      0 ::1:631                 :::*                    LISTEN      -               
tcp6       0      0 :::445                  :::*                    LISTEN      -               
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           -               
udp        0      0 ***.***.***.***:137     0.0.0.0:*                           -               
udp        0      0 0.0.0.0:137             0.0.0.0:*                           -               
udp        0      0 ***.***.***.***:138     0.0.0.0:*                           -               
udp        0      0 0.0.0.0:138             0.0.0.0:*                           -               
udp        0      0 0.0.0.0:54162           0.0.0.0:*                           -
But on B:
Code:
$ sudo netstat -lnptu
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
udp        0      0 0.0.0.0:5353            0.0.0.0:*                           992/avahi-daemon: r
udp        0      0 0.0.0.0:44693           0.0.0.0:*                           992/avahi-daemon: r
It seems that B isn't listening on port 22.

I hope I provided enough informations, I would be happy for any help!

Regards,
CHW