Skip to content

Instantly share code, notes, and snippets.

@govorox
Last active May 19, 2016 11:17
Show Gist options
  • Save govorox/d2a07c64a897a935c2b4da1969b27759 to your computer and use it in GitHub Desktop.
Save govorox/d2a07c64a897a935c2b4da1969b27759 to your computer and use it in GitHub Desktop.
ssh escape seqeunces
Normal keys are forwarded over the ssh session. Instead, use the escape sequences.
To kill the current session hit subsequently Enter ↵, ~, .
More of these escape sequences can be listed with Enter ↵, ~, ?:
Supported escape sequences:
~. - terminate session
~B - send a BREAK to the remote system
~R - Request rekey (SSH protocol 2 only)
~# - list forwarded connections
~? - 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