I have CentOS 7 running on a VPS machine and after a computer restart, I could no longer SSH to it.
$ ssh -v <IP>
OpenSSH_6.6.1, OpenSSL 1.0.1e 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to <IP> [<IP>] port 22.
debug1: connect to address <IP> port 22: Connection timed out
ssh: connect to host <IP> port 22: Connection timed out
I tried pinging but nothing.
$ ping <IP>
PING sidious (<IP>): 56 data bytes
Request timeout for icmp_seq 0
Request timeout for icmp_seq 1
traceroute outputs something but it never finishes, it ends up with
$ traceroute sidious
traceroute to sidious (37.205.11.241), 64 hops max, 52 byte packets
1 192.168.1.254 (192.168.1.254) 0.664 ms 0.457 ms 0.457 ms
...
9 * * *
10 * * *
11 * * *
12 * * *
The thing is that, on the VPS admin site, I could log in on the console. I tried to make sure the SSH is up, and I believe it is.
I temporarily disabled iptables.
$ iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Lastly, I also contacted the server administrator of my VPS if they can help on their end. But I am writing anyway if somebody can also help here.
I think it may be a network issue. Maybe I've accidentally affected it.
$ ss -tulpn
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port
tcp LISTEN 0 0 *:22 *:*
users:(("sshd",420,3))
...
tcp LISTEN 0 0 127.0.0.1:25 *:*
users:(("master",1367,13))
...
tcp LISTEN 0 0 :::22 :::*
users:(("sshd",420,4))
...
Any other thoughts how to troubleshoot this?