Question

ssh: connect to host xxx.xxx.xxx.xxx port 22: Connection refused

Posted September 28, 2014 7.7k views

I’m getting this error (all of a sudden) - when trying to ssh into my droplet.
Everything used to work and I didn’t change anything.
I have tried rebooting the droplet through the admin panel but still have this error…

What could be wrong?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

4 answers

Open the Console in cloud.digitalocean.com and type:

reboot

This question could end up being a million diffrent things.

Try to login via the console in the DO control panel and run the following command first to see if ssh is actually running:

sudo netstat -plunt | grep ssh
  • Thank you for helping out.
    I took a look at the DO console, tried to ssh from the terminal again and it somehow worked - I literally didn’t change anything. Weird…

i same this ,dropbear cannot ,refused

ssh: connect to host xxx.xxx.xxx.xxx port 22: Connection refused
Hi there! Please someone help,I have been searching for a while but still can’t fix the problem,I get this message after type the command sudo apt-get install htop,now I can login my server,anyone have the same problem?please help.thank all!

Submit an Answer