I can't ping my IP address or connect via SSH.

Linode Staff

After a reboot, I am unable to connect to my Linode via SSH. I also cannot ping my IP address.

1 Reply

It sounds like you might be having issues with your firewall.

I would run the following command to take a look at the ruleset that is currently active for iptables. If you are unable to connect via SSH, you can use our Lish console to connect.

sudo iptables-save

If you find that your firewall rules are blocking your connectivity, you can run the following set of commands to flush iptables:

sudo iptables -P INPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -P OUTPUT ACCEPT
sudo iptables -t mangle -X
sudo iptables -t mangle -F
sudo iptables -t nat -X
sudo iptables -t nat -F
sudo iptables -X
sudo iptables -F

After that process is complete, you can check on the status of your SSH service and restart that if necessary.

sudo service ssh status
sudo service ssh restart

That should get you moving in the right direction.

Thanks!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct