Connection hang, can't stop SSH

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

 



Using OpenSSH_8.3p1 I had an open (working) connection to some other
box; after a bit of inactivity, some device in the middle seems to have
forgotten about the TCP connection (NAT) and broke it.

I've got an EscapeChar defined, though; so first I tried to send a BREAK
and, when that didn't help (TCP already gone, packets get lost!), I
tried (just out of curiosity) a Rekey.

Now I can see my TCP side hanging with about 4KB in the socket buffers -
but the SSH process (that previously reacted fine upon my EscapeChar)
now is completely dead.

- EscapeChar doesn't work
- Ctrl-Z doesn't work
- Ctrl-C doesn't work


strace shows ssh hanging in
    pselect6(8, [3], [], NULL, NULL, NULL...


So yeah, my fault for trying a rekey on a broken connection... but I'd
have thought that my EscapeChar stays available, so that I can easily
get my terminal back!
(Yeah, I can just kill ssh from another. But what if it was my last
terminal after breaking the sshd setup?!?!)


Is it easy to get EscapeChar working all of the time?


Thanks!

Ph.
_______________________________________________
openssh-unix-dev mailing list
openssh-unix-dev@xxxxxxxxxxx
https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev



[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux