I keep getting connections timed out

I can not use my SSH randomly without getting connection timed out. I was able to log in and it said it needed to be rebooted which I did and ever since the reboot it won't give me the ability to log in and says timed out then crashes my CMD screen

1 Reply

First of all you'll want to check to make sure your Linode is up and running by running the ping command on your local machine. You can use the -c tag to specify the count. An example is ping -c5 192.168.1.1 replacing 192.168.1.1 with your Linodes IP address. This should be the first step in troubleshooting. A reply like this indicates the Linode is up and running.

 ping -c5 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: icmp_seq=0 ttl=115 time=52.008 ms
64 bytes from 8.8.8.8: icmp_seq=1 ttl=115 time=52.218 ms
64 bytes from 8.8.8.8: icmp_seq=2 ttl=115 time=50.514 ms
64 bytes from 8.8.8.8: icmp_seq=3 ttl=115 time=51.449 ms
64 bytes from 8.8.8.8: icmp_seq=4 ttl=115 time=45.397 ms

--- 8.8.8.8 ping statistics ---
5 packets transmitted, 5 packets received, 0.0% packet loss

The LISH console in Cloud Manager is a good way to access your Linode and check if your firewall rules are blocking your SSH connection. A good way to also rule out any firewall issue is to flush your iptable using this Community Post - How do I temporarily (or permanently) flush / wipe my iptables?.

After you've gained access through the LISH, you could also restart your ssh service by running systemctl restart ssh.service. In addition, it would be helpful to add the verbose flag to your SSH command to get more information on why you are seeing this error. You can use the flag like this:

ssh -v root@ 172.105.55.57
If that doesn't provide enough info, you could also try increasing the verbosity by using three v's in the flag (-vvv) when you run the command:

ssh -vvv root@ 172.105.55.57

This Community Post question on Why can't I connect to my Linode via SSH? and Troubleshooting SSH guide should be helpful as well.

If you recently did any configuration change on your Linode and do have our Backup Service, you could also restore your Linode from a previous backup you took using our Restore to an Existing Linode guide.

Best,
I.Sackey

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