SSHPosted on 2025-03-30 :: Updated on 2025-09-24 :: linux If your connection to remote server is hung and you can't do anything: Enter ~ . This forces the client to close the connection. This doesn't work on nested ssh connections!