Last Updated: February 25, 2016
· 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:

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!