Skip to content

Instantly share code, notes, and snippets.

@Jacke
Forked from olivertappin/escape-sequences.txt
Created October 25, 2023 15:38
Show Gist options
  • Save Jacke/f5da6bd98003c14fded2cea340d6d5b4 to your computer and use it in GitHub Desktop.
Save Jacke/f5da6bd98003c14fded2cea340d6d5b4 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