kill dead ssh sessions

Categories: General, Misc, OS

so this is one of those things that you forget about when you really need it.

ssh sessions dies, now to kill the session….

don’t remember how ???

neither do i most of the time.

type ~ and ? (thats a tilde then question mark)

which gives you this :

$ ~?
Supported escape sequences:
  ~.  - terminate connection (and any multiplexed sessions)
  ~B  - send a BREAK to the remote system
  ~C  - open a command line
  ~R  - Request rekey (SSH protocol 2 only)
  ~^Z - suspend ssh
  ~#  - list forwarded connections
  ~&  - background ssh (when waiting for connections to terminate)
  ~?  - this message
  ~~  - send the escape character by typing it twice
(Note that escapes are only recognized immediately after newline.)

so the break would be ~.

«
»

    Leave a Reply

    Your email address will not be published. Required fields are marked *