a place for common google searches ;)
SSH escape sequences
Ever found yourself in a situation where your SSH connection simply froze and you were not able to do anything.
A possible solution for this kind of problem are the SSH escape sequences.
To execute them you have to enter to a new line (so simply press “enter” on your keyboard), hit shift, press the back tick (`) to get the tilde (~) character and follow with the keys as described below.
1 2 3 4 5 6 7 8 9 10 11 12 |
[root@localhost ~]# ~? 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.) |
So to wrap it up:
press “enter” ~. to close the ssh connection
Comments are closed.