delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/02/15:09:53

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <3988718B.2C4B2420@cygnus.com>
Date: Wed, 02 Aug 2000 21:07:55 +0200
From: Corinna Vinschen <vinschen AT cygnus DOT com>
Reply-To: cygwin <cygwin AT sources DOT redhat DOT com>
X-Mailer: Mozilla 4.73 [en] (X11; I; Linux 2.2.14-SMP i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: "Fifer, Eric" <EFifer AT sanwaint DOT com>
CC: GNUWin32 <cygwin AT sources DOT redhat DOT com>
Subject: Re: OpenSSH through inetd.
References: <779F20BCCE5AD31186A50008C75D9979171763 AT silldn_mail1 DOT sanwaint DOT com>

FWIW, I can reproduce the behaviour.

sshd only fails if started from inetd.

I have a `stty' call in my profile and this `stty' prints an
interesting message:

stty: standard input: Not a character device

Then, the connection is closed.

I have straced that effect by

  strace -f inetd -d

but unfortunately I can't see why this happens. Of course I will
further investigate but, nevertheless, each help is welcome.

Corinna

"Fifer, Eric" wrote:
> 
> "Jens Yllman" wrote:
> >But after I did a reinstall for the cygwin 1.1.3 I can not get ssh to work.
> 
> I think I'm seeing the same thing.  I had been running cygwin-1.1.3
> with openssh-2.1.0p3 and starting a ssh session from inetd/sshd
> worked fine.  Today, I only upgraded openssh-2.1.1p4 and now I can
> *NOT* start ssh from inetd/sshd, either when inetd is started as a
> WinNT Service or when inetd (-d) is started from bash.
> 
> My account has administrator privileges and in sshd_config I'm only
> using "PasswordAuthentication yes".  A ssh -v shows everything
> going very normally, "debug: Entering interactive session.", then
> all of a sudden the other side of the connection drops and the
> session fails with "Connection to sil2036 closed."
> 
> However, if I launch sshd from bash (with or without debugging),
> a ssh session starts just fine.
> 
> The sshd -d debugging (that goes to the Event Viewer) doesn't
> seem to contain anything useful.  When comparing the sshd -d
> output for a failed ssh session (launched from inetd/sshd)
> to a successful ssh session (launched from bash/sshd, no -i),
> there is no obvious culprit.
> 
> The failed session seems to almost complete, but then the forked
> sshd child exits for some unknown/unreported reason.  Since,
> things worked before and logging in via telnetd continues
> to work, I'm assuming the problem is not with my configuration
> and has something to do with the new openssh-2.1.1p4 release.
> 
> I backed out to openssh-2.1.0p3 and everything works fine again.
> 
> I'll need to recompile and add more debugging to further isolate
> the problem.
> 
> Eric Fifer
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                        mailto:cygwin AT sources DOT redhat DOT com
Red Hat, Inc.
mailto:vinschen AT cygnus DOT com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019