Report this

What is the reason for this report?

Cannot connect to my droplet?

Posted on September 27, 2021

Hi Dev! I am doing some stupid thing, I was changing ssh port from 22 to 2590 port open in the firewall-cmd and I am able to connect to my droplet as normal, but I’m confused to delete the 2590 port from my firewall-cmd and now I can not connect to my droplet. and it banned my IP also cause I’m using fail2ban. is there a way to connect back to my droplet without destroying the droplet?



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!

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.

Hi @comeesportocean776,

You’ll need to use the Recovery Console to SSH and resolve the full disk. 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.

You can follow this documentation on how to enter your into your Droplet:

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

Basically, you’ll reset your root password and use it via the root user on the Recovery console to connect to it. Once inside you can see what’s causing the exact issues, remove the firewall rules and so on

Hope this helps!

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.