Originally published at: http://www.howtogeek.com/178798/how-to-disconnect-from-ssh-in-a-terminal-on-mac-os-x/
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.
Just out of curiosity... what about "exit" and/or "logout"?
EDIT: Nevermind, I just saw this is what you use when your are timed out.
I had the same problem, and then started using mosh, works perfectly and auto reconnects.
So mosh is basically screen + ssh together... but still uses SSH to connect?
My primary concern would be that the new protocol hasn't been tested much at all, so it's possible there are security holes in it. The SSH protocol is pretty solid at this point.
This topic was automatically closed after 10 days. New replies are no longer allowed.