I am attempting to connect to remote Ubuntu server via SSH, from my windows machine using PuTTY. However, I keep getting a timed out error and can't find any reason for it.
Attempting the connection from a console provides the following verbose output:
$ ssh -vvv <user>@<ip-address> OpenSSH_7.5p1, OpenSSL 1.0.2k 26 Jan 2017 debug1: Reading configuration data /etc/ssh/ssh_config debug2: resolving "<ip-address>" port 22 debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to <ip-address> [<ip-address>] port 22. debug1: connect to address <ip-address> port 22: Connection timed out ssh: connect to host <ip-address> port 22: Connection timed out
where is my username, and is the address of the server.
I have run
/sbin/ifconfig -a and confirmed that the ip address is correct.
I can login using the username I am attempting to ssh with, and that is fine.
/etc/init.d/ssh status on the server returns the following:
* ssh.service - OpenBSD Secure Shell Server Loaded: loaded (/lib/systemd/system/ssh.server; enabled; vendor preset: enabled) Active: active (running) since Wed 2017-09-06 BST; 21min ago ...
21 minutes ago I restarted the server, having already attempted to restart the SSH service. Connections are still being timed out.
The firewall is configured to accept connections on port 22, so I don't see any issue here.
I am very limited with what I can actually do within the console I have access to, but I'm not sure what else I can check or try.
Pinging the ip gives me this:
$ ping <ip-address> Pinging <ip-address> with 32 bytes of data: Reply from <ip-address>: bytes=32 time=14ms TTL=54 Reply from <ip-address>: bytes=32 time=14ms TTL=54 Reply from <ip-address>: bytes=32 time=14ms TTL=54
Telnet gives me no output:
$ telnet <ip-address> 22 $
Further, it is now letting me ssh (at least up to authentication, but that's a different issue entirely). No more issue, though I still don't what caused it in the first place