SSH escape sequences
I don’t use these often enough to remember them.
| Key Sequence | Description |
~. |
disconnects your session |
~^Z |
sends SSH to the background (handy for opening a session and then running other tunneled tasks) |
~& |
sends SSH to the background at logoff, and waits for all forwarded connections and X11 sessions to end before terminating |
~# |
lists forwarded connections in the current session |
~c |
opens a command line (useful for adding port forwarding with the -L and -R options |
~r |
request that the session be re-keyed (SSH2 only, if peer supports) |
~? |
displays a list of escape chars |
