Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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
up vote 37 down vote accepted

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)

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

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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