ssh: connect to host ***.**.**.** port 22: Operation timed out

Yesterday I created a droplet. Tried to connect through the console, but gives this message : ssh: connect to host ...* port 22: Operation timed out. I’m from Ukraine. Server took in London.

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

I had a similar issue twice with two different droplets. Rebooting the server helped in both cases.

Login to your DigitalOcean dashboard and access the droplet via the Console Access. If you’re able to login there, just enter the following command to reboot

sudo reboot

If you cannot login, then use the Power Cycle button instead.

Hope this helps someone :)

I also had a similar problem. Was getting connection timed out all the time. :(

On using the Power Cycle, as pointed out by @tamara worked for me. :)

I tried the powercycle stuff but that didn’t work, so I used the recovery console on the digital ocean dashboard to ssh into my ubuntu server then i ran a command i saw from one of the comments above.

sudo ufw allow 22/tcp

And then i was now able to ssh into my server from my local computer again