Howto kill hanging OpenSSH sessions

Note to myself: Hanging OpenSSH sessions can be killed with “<enter>~.” (enter key, tilde, period).

Most probably overlooked facts:

  • You have to press the enter key before the tilde character to enter the special command mode
  • With dead keys an additional space is needed after tilde
  • There are some other special commands available as well, see integrated help via ~?