can't connect through SSh to my droplet, can't access website hosted on droplet

Hello guys!

I’ve been using this droplet for about 3-4 months, and today all of a sudden I can’t connect through SSH, it just times out. I try to visit the wordpress website hosted on it, it times out, tried accessing the web console, it worked, tried connecting to localhost through ssh from web console and it worked, I also tried pinging its IP address ( ) from my PC and I got this

--- ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 3024ms

I don’t know what to do, any ideas? any information I need to provide so you can help me?


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.

Accepted Answer

Seems like it is a firewall issue.

I disabled the iptables firewall using the Flush All, Delete All Chains & Accept section of the tutorial below, and that did the trick for me:

sudo iptables -P INPUT ACCEPT sudo iptables -P FORWARD ACCEPT sudo iptables -P OUTPUT ACCEPT

sudo iptables -t nat -F sudo iptables -t mangle -F sudo iptables -F sudo iptables -X


Same here. Droplet seems to work fine, but I can’t login via ssh nor can I access website.

New Year

Same Issue


Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

card icon
Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Sign up
card icon
Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We’d like to help.

Learn more
card icon
Become a contributor

You get paid; we donate to tech nonprofits.

Learn more
Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow – whether you’re running one virtual machine or ten thousand.

Learn more ->
DigitalOcean Cloud Control Panel
Get started for free

Enter your email to get $200 in credit for your first 60 days with DigitalOcean.

New accounts only. By submitting your email you agree to our Privacy Policy.

© 2023 DigitalOcean, LLC.