How can I break out of ssh when it locks?
Posted
by
Wayne Werner
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Wayne Werner
Published on 2011-03-11T16:22:22Z
Indexed on
2011/03/12
0:18 UTC
Read the original article
Hit count: 396
ssh
Hi,
I frequently ssh into my box at home from school, but usually when I change classes and my computer suspends, the pipe will be broken. However, ssh simply locks up - ^c, ^z and ^d have no effect.
It's annoying to have to restart my terminal, and even more annoying to have to close and re-create a new screen window.
So my question, is there an easy way to make ssh die properly (i.e. when the pipe fails "normally" it will exit with a message about a broken pipe)? Or do I have to figure out what the PID is and manually kill it?
Thanks!
© Ask Ubuntu or respective owner