SSH session is stuck and cannot be exited by entering
And we need to break out this session without closing terminal emulator
How to solve?
~ then press
~. is an escape sequence that can terminate SSH session
Supported escape sequences: ~. - terminate session ~B - send a BREAK to the remote system ~R - Request rekey (SSH protocol 2 only) ~# - list forwarded connections ~? - this message ~~ - send the escape character by typing it twice (Note that escapes are only recognized immediately after newline.)