To unlock a frozen SSH session (e.g. after connection timeout) without needing to open a new shell, press Enter, then tilde, then period.