Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
From: "Richard Stanton" <stanton@haas.berkeley.edu>
To: <cygwin@sources.redhat.com>
Subject: SSHD: works from command line, but not from INETD
Date: Sun, 3 Sep 2000 23:08:02 -0700
Message-ID: <LNBBKMIKMNGEJNEJICPHAEKFEEAA.stanton@haas.berkeley.edu>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
In-Reply-To: <200009021956.PAA03150@rtl.cygnus.com>
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700

I can connect to my machine (Win2k) using ssh if I run sshd at the command
line. However, when I follow the instructions to run sshd from inetd, here's
what happens when I try to connect using ssh:

c:\>ssh localhost
ssh_exchange_identification: Connection closed by remote host

For more information, I tried:

c:\>ssh -v localhost
SSH Version OpenSSH_2.2.0p1, protocol versions 1.5/2.0.
Compiled with SSL (0x0090581f).
debug: Seeding random number generator
debug: ssh_connect: getuid 1000 geteuid 1000 anon 0
debug: Connecting to localhost [127.0.0.1] port 22.
debug: Seeding random number generator
debug: Allocated local port 602.
debug: Connection established.
ssh_exchange_identification: Connection closed by remote host
debug: Calling cleanup 0x413444(0x0)

This looks rather different from the trace when I am running sshd at the
command line:

c:\4nt>ssh -v localhost
SSH Version OpenSSH_2.2.0p1, protocol versions 1.5/2.0.
Compiled with SSL (0x0090581f).
debug: Reading configuration data /usr/local/etc/ssh_config
debug: Applying options for *
debug: Seeding random number generator
debug: ssh_connect: getuid 1000 geteuid 1000 anon 0
debug: Connecting to localhost [127.0.0.1] port 22.
debug: Seeding random number generator
debug: Allocated local port 733.
debug: Connection established.
debug: Remote protocol version 1.99, remote software version OpenSSH_2.2.0p1
debug: Local version string SSH-1.5-OpenSSH_2.2.0p1
debug: Waiting for server public key.
debug: Received server public key (768 bits) and host key (1024 bits).
debug: Forcing accepting of host key for loopback/localhost.
debug: Seeding random number generator
debug: Encryption type: 3des
debug: Sent encrypted session key.
debug: Installing crc compensation attack detector.
debug: Received encrypted confirmation.
debug: Doing password authentication.
stanton@localhost's password:

In particular, the first trace didn't mention reading the configuration
file.

What am I missing?

Thanks.

Richard Stanton


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

