Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

up vote 27 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 at 21:30

Your Answer

 
discard

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.