Report this

What is the reason for this report?

cannot connect to my droplet after firewall is enabled

Posted on June 15, 2023

Please help to be able to connect my 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.

Heya,

You’ll need to use the Recovery Console to SSH and resolve the firewall issue.

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

Hope this helps!

Temporarily add a firewall rule to allow all inbound TCP access – DigitalOcean’s web server hosting the console access app is being denied access. When you’re done, remove that rule.

While you have access, suggest adding your local machine’s public SSH key to ~/.ssh/authorized_keys, and then adding your local machine’s public IP to the firewall to permit inbound access.

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.