diff --git a/README.md b/README.md index e69195b..c6503ef 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ variety of languages and technologies. These are things that don't really warrant a full blog post. These are mostly things I learn by pairing with smart people at [Hashrocket](http://hashrocket.com/). -_410 TILs and counting..._ +_411 TILs and counting..._ --- @@ -381,6 +381,7 @@ _410 TILs and counting..._ - [Search History](unix/search-history.md) - [Search Man Page Descriptions](unix/search-man-page-descriptions.md) - [Securely Remove Files](unix/securely-remove-files.md) +- [SSH Escape Sequences](unix/ssh-escape-sequences.md) - [SSH With Port Forwarding](unix/ssh-with-port-forwarding.md) - [Switch Versions of a Brew Formula](unix/switch-versions-of-a-brew-formula.md) - [Watch The Difference](unix/watch-the-difference.md) diff --git a/unix/ssh-escape-sequences.md b/unix/ssh-escape-sequences.md new file mode 100644 index 0000000..0dcdcb2 --- /dev/null +++ b/unix/ssh-escape-sequences.md @@ -0,0 +1,25 @@ +# SSH Escape Sequences + +In [Killing A Frozen SSH Session](killing-a-frozen-ssh-session.md), I talked +about an escape sequence for breaking out of an SSH session when the pipe +has been broken. This isn't the only SSH escape sequence though. To see the +others, hit `~?`. This displays a help list with all the other escape +sequences. + +``` +> ~? +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 + ~V/v - decrease/increase verbosity (LogLevel) + ~^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.) +``` + +h/t Josh Davey