Connect to IP address port 22: Connection refused


In my case it was a daemon that not running.

If your server ping: ping XXX.XXX.XXX

PING XXX.XXX.XXX 56(84) bytes of data.

64 bytes from 176.9.41.226: icmp_seq=1 ttl=58 time=0.655 ms

But the Connect to IP address port 22: Connection refused


  • The ssh daemon is not running
  • The host is blocking the target port with its software firewall
  • Some intermediate network device is blocking or filtering the target port
  • The ssh daemon is listening on a non standard port
  • A TCP wrapper is configured and is filtering out your source host
  • In my case it was a daemon that not running.




in order to check the issue from your side, we have connected a KVM console to your server. More information on the KVM console can be found on KVM documentation.

Waiting about 1 hour and 15 minutes and the server came back by itself.

So the connection will work again. Don’t forget to remove the key from the rescue connection.

Please contact your system administrator.

Add the correct host key in /root/.ssh/known_hosts to get rid of this message.

Offending ECDSA key in /root/.ssh/known_hosts:83

remove with:

ssh-keygen -f "/root/.ssh/known_hosts" -R 176.9.41.226

ECDSA host key for 176.9.41.226 has changed and you have requested strict checking.

Host key verification failed.




Comments