Apply for Free VPS

Cannot connect with SSH: step-by-step checks

Updated 27 Nov 2026 ssh errors

Work out where the connection fails.

Run the client with detail first:

ssh -v root@203.0.113.10

"Connection timed out"

  • Is the server running? Check the server page.
  • On a shared-IPv4 plan, are you using the forwarded SSH port?
  • Did you enable a firewall without allowing SSH? Use the console and run sudo ufw allow OpenSSH.
  • Try another network; some networks block unusual ports.

"Connection refused"

The server answered but nothing is listening. In the console:

sudo systemctl status ssh
sudo sshd -t
sudo systemctl restart ssh

On AlmaLinux and Rocky the service is called sshd.

"Permission denied (publickey)"

  • Check the username shown on the server page.
  • Point to the right key with -i.
  • In the console, check ~/.ssh/authorized_keys contains your public key and that permissions are strict:
chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys

"Remote host identification has changed"

Expected after a reinstall. Remove the old key:

ssh-keygen -R 203.0.113.10

If you did not reinstall, stop and contact support.

Still stuck? Open a VPS access ticket and include the ssh -v output.

Was this helpful?

Report outdated or incorrect information