Last Updated: February 25, 2016
·
512
· pcting

Stuck waiting for your frozen SSH session to timeout?

I work off my laptop a lot; I move around a lot between WiFi networks a lot. Most of the time, I forget the disconnect from my running SSH session. As a result, I get stuck with a useless bash session waiting for the SSH session to exit out.

Enter SSH escape sequences:
http://lonesysadmin.net/2011/11/08/ssh-escape-sequences-aka-kill-dead-ssh-sessions/

All you have to remember is ENTER-TILDE-DOT. Press those keys in sequence and the SSH session will immediately terminate. You'll never have to bring up a new bash ever again!