How do I separate SSH

Disconnecting from SSH in a terminal on Mac OS X

Since moving to OS X, there's been a minor annoyance that annoys me, and it's a minor problem really: my SSH sessions hang whenever my VPN times out and then I have to close the terminal to get the connection to disconnect, as SSH needs eternal downtime for some reason.

Of course, there are a number of settings that you can use to change the SSH timeout to detect that the connection was down, but I felt like getting instant gratification. Fortunately, there is a simple keyboard shortcut that you can use to disconnect the SSH connection instantly.

Enter ~.

That's enter, then the tilde (~) key, followed by the period (.) Key, although if I was using a drop-down terminal I could just use the tilde followed by the period. Either way, OS X Mavericks will be disconnected immediately, and that's good enough for me.

I am sure that I will be using this keyboard shortcut every day. So I won't forget her, but maybe she'll help someone else. And for those wondering, CTRL + D just didn't work.