А вы знали вот, что ели нажать Enter~. во время зависшей сесии ssh, то клиент её обрубит. (Конечно лучше ServerAliveInterval+ServerAliveCountMax, но всё таки круто же) А если Enter~ Ctrl+Z - то переведёт в бэкграунд. Да и вообще в мане много других хоткеев описано. Я как-то раньше никогда не доходил до них :-) $ ~? 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.)
Что бы не забыть всякие мелочи, которые делал.