What should I do if my SSH connection hangs?

What should I do if my SSH connection hangs?

The fix is to make ssh send all its traffic via netcat, because netcat won’t set the TOS field. For this to work, you need to have netcat installed. You can test this by entering at the command line:

Is there a way to access my SSH server?

No. You need to ask the administrator of the remote machine/network how to access it, and if he/she doesn’t know, suggest he/she set up one of the above. Regarding your ssh output http://pastebin.com/dDxd4GjQ it seems like ssh isn’t open on default port 22 on the remote host. (possibly no ssh at all, or a firewall is protecting it).

Why does my router choke on my SSH connection?

A problem can arise when you are trying to connect from behind a NAT router using OpenSSH. During session setup, after the password has been given, OpenSSH sets the TOS (type of service) field in the IP datagram. Some routers are known to choke on this.

Why is my SSH not open on my remote host?

Regarding your ssh output http://pastebin.com/dDxd4GjQ it seems like ssh isn’t open on default port 22 on the remote host. (possibly no ssh at all, or a firewall is protecting it). If you have authorisation, you can scan the ports of this host to see if there’s a binding ssh port on another port.

What happens when the SSH connection is dropped?

Closed 3 years ago. If I was running a command before the SSH connection was dropped, will the command continue executing? In most cases, no. Processes will be sent a SIGHUP on loss of terminal. You can prefix a command with ‘nohup’ to ignore the signal.

How to close an unresponsive SSH connection in Linux?

Close ssh connection. Terminate an unresponsive ssh session in LInux. Automatically kill or disconnect hung ssh session using ServerAliveInterval. Automatically kill a PSSH session using timeout in Linux. Disconnect hung pssh session in linux after certain time period.

How can I get SSH client to leave my computer?

There is a “secret” keyboard shortcut to force an unresponsive ssh session to exit. From the frozen session terminal, hit these keys in order: Enter → ~ →. The tilde (only after a newline) is recognised as an escape sequence by the ssh client, and the period tells the client to terminate it’s business without further ado.