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!
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!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.