Question

Can't connect to my droplet via terminal

Hello guys i’m not able to connect to my droplet via SSH , i can access it via the console in the dashboard, also i checked a online tool https://www.infobyip.com/sshservertest.php and found that the port 22 is closed, so i 'mt not able to connect to my droplet via ssh


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 simillar issue, i later realized port 22 was closed, i enabled it with $sudo ufw allow 22
and it worked.

Hi there,

Are you getting ping to the droplet? Have you made any recent changes to the droplet configuration (like changing firewall rules)?

You can use the DigitalOcean console to regain access to your droplet.

The Recovery Console provides out-of-band access and is available regardless of your network settings. It emulates the access you would have if you were sitting down with a keyboard and monitor attached to the actual server. You can use this feature to log in and revert bad settings to regain normal access.

https://docs.digitalocean.com/products/droplets/how-to/recovery/recovery-console/

Regards

have a similar problem. Any advice?