2 added 3 characters in body; deleted 1 characters in body
source | link

One way is to use the ssh escape character. By default this is "~", but it can be set manually with -e option when invoking ssh or via EscapeChar in your ssh config. To kill the hung session this will often work:

~.

AlthoughAs pointed out by Gilles this often fails when your ssh session got hung when using some interactive toolis only recognized immediately after hitting Enter.

One way is to use the ssh escape character. By default this is "~", but it can be set manually with -e option when invoking ssh or via EscapeChar in your ssh config. To kill the hung session this will often work:

~.

Although this often fails when your ssh session got hung when using some interactive tool.

One way is to use the ssh escape character. By default this is "~", but it can be set manually with -e option when invoking ssh or via EscapeChar in your ssh config. To kill the hung session this will often work:

~.

As pointed out by Gilles this is only recognized immediately after hitting Enter.

1
source | link

One way is to use the ssh escape character. By default this is "~", but it can be set manually with -e option when invoking ssh or via EscapeChar in your ssh config. To kill the hung session this will often work:

~.

Although this often fails when your ssh session got hung when using some interactive tool.