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 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.

I had a simillar issue, i later realized port 22 was closed, i enabled it with $sudo ufw allow 22
and it worked.

This comment has been deleted

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.