## 22 no route to host: answer says it's a connectivity problem and to check with ping $ ssh -p 2222 root@127.0.0.1 ssh: connect to host 127.0.0.1 port 2222: No route to host # answer's check $ ping -c 2 127.0.0.1 2 packets transmitted, 2 received, 0% packet loss, time 1002ms # ping passes while the error stays: a firewall rule on port 2222 sends the reply # rule removed $ ssh -p 2222 root@127.0.0.1 login-ok