From 1e2db4ab539b56bf85539bb0823d86baf1955e53 Mon Sep 17 00:00:00 2001 From: jbranchaud Date: Thu, 26 Mar 2015 13:12:29 -0500 Subject: [PATCH] Add Killing A Frozen SSH Session as a zsh til. --- README.md | 1 + zsh/killing-a-frozen-ssh-session.md | 14 ++++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 zsh/killing-a-frozen-ssh-session.md diff --git a/README.md b/README.md index 1ba99a0..67df5c1 100644 --- a/README.md +++ b/README.md @@ -59,6 +59,7 @@ smart people at [Hashrocket](http://hashrocket.com/). ### zsh - [Clear The Screen](zsh/clear-the-screen.md) +- [Killing A Frozen SSH Session](zsh/killing-a-frozen-ssh-session.md) - [Search History](zsh/search-history.md) - [Where Are The Binaries?](zsh/where-are-the-binaries.md) diff --git a/zsh/killing-a-frozen-ssh-session.md b/zsh/killing-a-frozen-ssh-session.md new file mode 100644 index 0000000..900bc98 --- /dev/null +++ b/zsh/killing-a-frozen-ssh-session.md @@ -0,0 +1,14 @@ +# Killing A Frozen SSH Session + +Whenever an SSH session freezes, I usually mash the keyboard in desperation +and then kill the terminal session. This can be avoided though. SSH will +listen for the following kill command: + +``` +~. +``` + +This will kill the frozen SSH session and leave you in the terminal where +you were before you SSH'd. + +source: [Jack C.](http://hashrocket.com/team/jack-christensen)