Skip to content

Instantly share code, notes, and snippets.

@dermotw
Created August 31, 2012 14:43
Show Gist options
  • Save dermotw/3553857 to your computer and use it in GitHub Desktop.
Save dermotw/3553857 to your computer and use it in GitHub Desktop.
SSH Escape Codes
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 (SSH protocol 2 only)
~^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