Cannot connect to my droplet?

Posted September 27, 2021 107 views
CentOS 8

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?

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.

Submit an Answer
1 answer

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:

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!