Sometimes my ssh session in the terminal hangs. How can I exit the ssh session and reconnect?
|
|
|
Type Generally speaking, the
If you want a tilde at the beginning of a line, press ~ twice. |
|||||||||||||||||
|
|
Try entering Shift+`+. |
|||||||||||||
|
|
If your session is hung and the prompt is no longer responsive you can just kill the Terminal instance and all child processes associated with that instance, of which your ssh session is one, should get axed along with it. If you're really wanting to be thorough though you can open a new Terminal instance, look for ssh sessions in the process list, and kill them via the command line:
If that doesn't work try:
Don't kill the Or you can open Activity Monitor and search there for sessions and hit the kill button for them:
|
|||||||||
|
