Skip to content

Instantly share code, notes, and snippets.

@olivertappin
Last active October 25, 2023 15:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save olivertappin/fff687b561bfc28122c2bb27be626d95 to your computer and use it in GitHub Desktop.
Save olivertappin/fff687b561bfc28122c2bb27be626d95 to your computer and use it in GitHub Desktop.
Stuck with a frozen SSH session which has timed out? Try some of these:
Supported escape sequences:
~. - terminate connection (and any multiplexed sessions)
~B - send a BREAK to the remote system
~C - open a command line
~R - request rekey
~V/v - decrease/increase verbosity (LogLevel)
~^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 newline.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment