Trying to ssh to my droplet : port 22: Connection timed out

  • Posted November 3, 2014

I’ve created a new droplet using a image. I’m trying to connect to it through ssh but I’m getting a port 22: Connection timed out error.

I’ve tried rebooting the system through the DO console.

I’ve tried the following:

sudo apt-get install openssh-server
sudo apt-get install openssh-client

/etc/init.d/ssh start
Rather than invoking init scripts through /etc/init.d use the service(8) utillity, e.g. service ssh start
 Since the script you are attempting to invoke has been converted to and Upstart job, you may also use the start(8) utillity, e.g.e start ssh

sudo service ssh status
/lib/init/ upstart-job: 28 : shift: can't shift that many

sudo service ssh status
ssh start/running, proces 1702

When I go to the ip adres I get forwarded to the website.


If you mean the name of the image, it’s Ubuntu rails-server-1412764276.

What image are you using? That is an important part of troubleshooting the problem.

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

Hello, @alucardu

If you’re able to access your droplet using the console from the control panel you can check if the ssh service is running using:

service sshd status

if the service is stopped/dead you can start it:

service sshd start

Also you can check if something else have taken the ssh port using netstat:

netstat -plunt | grep ssh


netstat -plunt | grep 22

If you’ve made changes to your ssh configuration (e.g switched ports) you should check for the port which is used from sshd

Hope this helps!

Regards, Alex

This comment has been deleted