delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/12/15/07:38:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <012d01c2a436$c84e0220$f75c893e@pomello>
From: "Max Bowsher" <maxb AT ukf DOT net>
To: <cygwin AT cygwin DOT com>, "Emilio A Icaza" <emilio AT lsu DOT edu>
References: <OFB77192B8 DOT FA910EBD-ON86256C79 DOT 006145F7 AT lsu DOT edu>
Subject: Re: Giving up trying to get Cygwin OpenSSH3.5 to work on Win2000 Pro SP3
Date: Sun, 15 Dec 2002 12:30:49 -0000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

Emilio A Icaza <emilio AT lsu DOT edu> wrote:

>> Can somebody help me figure out what can be wrong with this?

I'll try.

>> 1. Installed CYGWIN base and needed packages
>> 2. Installed openssh 3.5p1-2 and requisites
>> 3. Ran ssh-host-config to create keys, sshd user, and service, etc.

Which does work for me... weird.

I have a shot in the dark you might try: set all your mounts to binmode.

>> If I try to connect to the server from localhost, with:
>> $ ssh emilio AT localhost -v -v -v

I've read your log. It seems like a socket read is failing for some reason.
I don't understand that. I'm going to explain how to get the *server* debug
output, which might hold a clue:

Install another sshd service like this:
cygrunsrv -I sshd2 -d "CYGWIN sshd DEBUG MODE" -p /usr/sbin/sshd -a
"-Dddde" -e "CYGWIN=binmode tty ntsec" -t manual

Note the difference is in the arguments: added -ddde

Now end your current sshd (cygrunsrv -E sshd) to free port 22, and start
this one (cygrunsrv -S sshd2).
Try to log in from localhost. /var/log/sshd2.log will fill with loads of
stuff. Post it.

NB: With a -d option, sshd will die after serving one connection. You will
have to do cygrunsrv -S sshd2 again if you want to run another test.

>> The server /var/log/ssh.log file is empty.

That file is the stdout/stderr of sshd, redirected to a file by cygrunsrv.
You can safely add the -e option to your normal sshd, to get minimal logging
to sshd.log without causing the 'die after every connection' behaviour.

Max.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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