How to kill or close a frozen SSH connection

From time to time it happens. While working on a remote system via SSH the connection freezes. Mostly due to bad Wifi connectivity or some gremlins in between have just messed up. What you should NOT do is closing the terminal window. It is lame bad practice. What you should do is:

Press Enter
Press ~
Press .

This will gracefully close the SSH connection on your end. ~. is the termination sequence for an SSH client.

(170 Posts)

20 years of coding and working as software engineer but I am still eager to learn more. I am very passionate when it comes to open source, Linux and Java. But I made my peace with Windows long ago to fully enjoy my PC gaming hobby. I have a soft spot for 90s electronic music and Babylon 5. In the evenings you will find me roaming the endless space in Warframe (IGN k05h).