PuTTY: Forcibly terminate an SSH session without closing the window

puttyssh

Is there a way to forcibly terminate an SSH session in PuTTY, short of closing the PuTTY window?

For example, in OpenSSH, I can use the ~. escape sequence to kill the connection.

This is useful when the SSH session stops responding for some reason, but I don't want to lose any of my current session-specific settings. In that case, I'd like to kill the session and then use Restart Session to reconnect.

Best Answer

You can try sending a break signal by pressing CTRL+Break.

If the connection is an SSH-2 connection and the server supports it, you will have a "Break" option under "Special Commands"