Re: Cygwin ssh exits when I hit ctrl+c in a shell over a slow connection

From: Darren Tucker (dtucker_at_gate.dodgy.net.au)
Date: 04/28/05


Date: 28 Apr 2005 12:17:47 GMT

On 2005-04-27, ion <ionFreeman@gmail.com> wrote:
> I can ssh in, then run something like 'tail -f logfile'. To
> terminate the tail -f, I hit 'ctrl+c'. This terminates my shell!

ssh in to what platform? Running which SSH software and version?

This can happen if sshd doesn't set up the controlling terminal properly
for the user's shell, and ends up with the pty being the controlling tty
of sshd. When you hit CTRL-C, the interrupt signal is delivered to sshd
instead of the tail, and sshd dies.

I've only ever seen this with OpenSSH vintage 3.1 or so on Solaris (where
it's actually due to a bug in a STREAMS module, but OpenSSH has worked
around it for a long time).

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.


Relevant Pages

  • Re: how would openssh react face to an attack ?
    ... >but how would it react face to an attack? ... account after X password failures. ... if the OS doesn't support lockout then sshd doesn't either. ... Good judgement comes with experience. ...
    (comp.security.ssh)
  • Re: telnet tunnelling ssh
    ... >That host has ssh package installed and sshd up and running. ... >(All looks silly but it's the truth) ... >connection already established? ... Good judgement comes with experience. ...
    (comp.security.ssh)
  • Re: AIX 5.3 LDAP PAM PrivilegeSeperation
    ... > If we run sshd in non-privilegeseperation mode, ... > expiry, when a user is REQUIRED to change the password, when a new ... Good judgement comes with experience. ...
    (comp.security.ssh)
  • Re: PAM and SSH
    ... It appears that for sshd, sshusers would have to be their primary group ... sshd checks the supplemental group ids by using getgrouplist. ... why I suggested using two AllowGroups directives in my follow-up post. ... Good judgement comes with experience. ...
    (SSH)
  • Re: key_read: missing keytype
    ... the logfiles indicated that my sshd doesn't check this ... uses that directory but OpenSSH doesn't. ... Good judgement comes with experience. ...
    (comp.security.ssh)