What if the SSH connection is broken but you don’t want to turn off the terminal and reopen it?
What if the SSH connection is broken but you don’t want to turn off the terminal and reopen it? Input in sequence
~ SSH command, using
~?You can see all commands, which are valid only at the beginning of the line
[email protected]:~$ ~? Supported escape sequences: ~. - terminate connection (and any multiplexed sessions) ~B - send a BREAK to the remote system ~C - open a command line ~R - request rekey ~V/v - decrease/increase verbosity (LogLevel) ~^Z - suspend ssh ~# - list forwarded connections ~& - background ssh (when waiting for connections to terminate) ~? - this message ~~ - send the escape character by typing it twice (Note that escapes are only recognized immediately after newline.)