29

Oooops i just typed "ip link set eth0 down" while i was sshed into a server. that ssh session is now stuck for the timeout. Is there a key I can press to kill the ssh session with out waiting for the timeout?

  • Depends on which client you're using. Are you using Putty? Or a *nix client? – Mark Henderson Mar 30 '10 at 22:59
  • it is a Linux client – Arthur Ulfeldt Mar 31 '10 at 0:41
59

Assuming you're on some kind of Unix/Linux/OS X and running 'ssh' from a terminal;

<enter> ~. 

(also ~? will show you lots of other sometimes helpful keys)

  • 2
    Finally, something that actually works. I'd +10 if I could. – jcollum Dec 29 '11 at 2:05
  • 1
    awesome tip. just to clarify: <enter> can also be <return> – rbp Mar 1 '14 at 21:30

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.