Skip to content

Instantly share code, notes, and snippets.

@mdaguete
Forked from dermotw/ssh-escape-codes.txt
Created September 11, 2018 10:13
Show Gist options
  • Save mdaguete/6ac661cbf04bab6344dc50dfb409f058 to your computer and use it in GitHub Desktop.
Save mdaguete/6ac661cbf04bab6344dc50dfb409f058 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