Question

Experiencing this error - ssh: connect to host xxx.xx.xxx.xx port 22: Operation timed out

I’m not able to access my droplet via ssh with the command ssh user@xxx.xx.xxx.xx It returns a port 22: Operation timed out error.

I used to be able to access it without any problems but haven’t access it in several weeks.

I’m using a custom fedora image if that helps.

I’ve tried to access the droplet console so I can do some resets as pointed out in some community posts but I never set up a password because I used sssh. The droplet doesn’t allow me to reset root password because: This Droplet’s root password is managed internally and cannot be changed from the control panel. Please SSH into the Droplet to manage it.

Is there any way to access the droplet console?


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.

Accepted Answer

The issue turned out to be related to the firewall setup. My local public IP was missing from the firewall setting.

What firewall are you using? Is port 22 allowed in the firewall rules? With UFW, something like ufw allow 'OpenSSH' should open port 22 (which SSH runs on)

I’ve tried rebooting the with Power Cycle on the droplet but still not able to access it via ssh.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel