[PLUG] Troubleshooting ssh

Paul Heinlein heinlein at madboa.com
Tue Sep 5 16:51:41 UTC 2017


On Tue, 5 Sep 2017, Rich Shepard wrote:

>   Trying to get ssh working between a laptop (typha) and the server (salmo).
>
> SSH port numbers match.
>
> 'netstat -part' on the server shows ssh listening on the correct port number.
>
> Target host (server) is in client (typha) /etc/hosts:
> 192.168.55.1	salmo ...
>
> 'ssh -vv salmo' shows 'resolving salmo port nnnnn' (correct number)
> ssh: count not connect to host salmo:: Name or service not known'
>
> Same result with 'ssh -vv 192.168.55.1'.
>
>   Web searches find many hits but all point to solutions which are described
> above.
>
>   I'm out of ideas of what to test so I can fix this issue, and seek advice
> from experienced network admins.

First, check that ping works and shows the expected source and 
destination addresses:

ping salmo

If not, there are other network issues to solve.

Second, check that you can reach 22/tcp (or whatever port you use for 
ssh) on salmo from your other machine:

nmap -p 22 salmo

If not, try running 'iptables -L' or 'iptables-save' from the console 
on salmo to ensure there's no firewall blocking inbound SSH.

Third, try running ssh from salmo to the other host.

-- 
Paul Heinlein
heinlein at madboa.com
45°38' N, 122°6' W


More information about the PLUG mailing list