SSH Escape Sequences — Escaping the Frozen SSH Connection
Dev tip 8/99
Published in
1 min readSep 5, 2017
Ever have an SSH connection to a remote server freeze because the internet died or you switched from wifi to wifi? In the past I would shut down the terminal window and create a new one because I lost control of the one with ssh
. Then I found out about the ssh
escape sequence ~.
. When ssh
freezes, now I type the sequence <return>~.
and I regain control of my terminal. That sequence forces SSH to disconnect from the server!
Check out the man page (ubuntu) for more information.