How to terminate SSH connection

Currently, I am working over an unstable network connection, so my SSH session is constantly disconnected. It is very uncomfortable situation as dropped SSH connection freeze the whole terminal.

Fortunately, I have already described SSH escape sequences, so I did not have to try every key combination to close that freaking SSH session.

I will jot down the following escape sequence to remember it later, as it is very simple key combination, but easily forgotten.

  • Press Enter to start new escape sequence
  • Press ~ (tilde)
  • Press . (dot)
Milosz Galazka's Picture

About Milosz Galazka

Milosz is a Linux Foundation Certified Engineer working for a successful Polish company as a system administrator and a long time supporter of Free Software Foundation and Debian operating system.