Supported escape sequences:
~ . - terminate connection
~ ^ Z - suspend ssh
~ # - list forwarded connections
~ & - background ssh (when waiting for connections to terminate)
~ ? - this message
~ ~ - send the escape character by typing it twice
(Note that escapes are only recognized immediately after a newline.)
For example, to suspend a current SSH session:
~ ^ Z(that's tilde, followed by CTRL-Z). To resume execution of the session:
fg
If, for some reason, there are network problems, the current SSH session ``hangs", and you want to disconnect from it:
~ .