Linux tips: SSH
Sometimes your SSH session is frozen or seems stuck.
I did some research and there is actually a clean way to deal with it.
I found some explanations on this blog : https://infertux.com/posts/2012/12/20/properly-close-a-frozen-ssh-session/
TLDR : The most useful command is :
press in that order:
- [Enter]
- ~
- .
That is, return key then tilde then period.
This will send an escape sequence to your local SSH client and terminate the connection. So this will always work even without a network connection.
There are other escape codes, go check the link above to find out more.
- ← Précédent
Welcome - Suivant →
Longread : the hermit