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

Become a contributor for community

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

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.