How to Disconnect from SSH in a Terminal on Mac OS X

how-to-disconnect-from-ssh-in-a-terminal-on-mac-os-x photo 1

Ever since switching to OS X there has been one tiny annoyance bugging me, and it really is a small one: My SSH sessions will hang whenever my VPN times out, and then I have to close out of the Terminal to get it to disconnect, because SSH takes forever to time out for some reason.

Of course, there are a bunch of settings that you can use to change the SSH timeout so it’ll recognize that the connection is gone, but I was in the mood for instant gratification. Luckily there is an easy shortcut key sequence you can use to make SSH disconnect instantly.

how-to-disconnect-from-ssh-in-a-terminal-on-mac-os-x photo 2

Enter ~ .

That’s the Enter key, then the Tilde (~) key, followed by the period key (.), although I was able to also just use the tilde followed by period when using a drop-down terminal. In any case, it disconnects me instantly on OS X Mavericks, and that’s good enough for me.

how-to-disconnect-from-ssh-in-a-terminal-on-mac-os-x photo 3

I’m sure that I’ll be using this shortcut key sequence every day, so I won’t forget it, but maybe it’ll help somebody else. And for those that are wondering, CTRL + D just wasn’t working for me.

More stories

Ultrabook

Ultrabooks are high-end subnotebooks. Although the term has become synonymous with very lightweight yet full size laptop computers, it’s actually a trademark of computer company Intel and has specific criterion. The specifications cover battery life (5 hours or better), height (21 mm or thinner),

How to Remove Holidays from Your Calendar in Outlook 2013

Have you added holidays to your calendar in Outlook and now you want to remove them? Maybe you added holidays from a country or religion you didn’t mean to add, or you just don’t need to see the holidays on your calendar.

8 Navigation Tricks Every iPad User Needs to Know

Like any piece of technology, iPads aren’t completely obvious when you first pick them up. They have their own language of gestures, swipes, and button presses you should learn to become more comfortable using them.