Force SSH Disconnect

Normally when I ssh into another computer I just type exit when I’m done to disconnect. But on occasion, the connection seems to hang for no reason that I can determine.

Tonight though, I learned of the following shortcut:


Though I haven’t yet tested it on a hung connection my understanding is that it will immediately force a disconnect. Scratch that. It turns out that this will not disconnect a hung SSH connection. Darn.