How do I kill a locked SSH session? [duplicate]
To disconnect a locked-up ssh session, typeEnter ~.
A full list of escape codes can be found in the ssh manpage or by typing ~?.
Type the following key sequence: Enter, ~, .. On US keyboards, the tilde (~) is Shift+`.