33

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?

2
  • Depends on which client you're using. Are you using Putty? Or a *nix client? Mar 30, 2010 at 22:59
  • it is a Linux client Mar 31, 2010 at 0:41

1 Answer 1

69

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .