delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/11/30/18:22:53

X-Spam-Check-By: sourceware.org
Message-ID: <83c75fec0611301522h65c383e1wfd712181b1fd50d2@mail.gmail.com>
Date: Fri, 1 Dec 2006 02:22:30 +0300
From: "burning shadow" <burning DOT shadow AT gmail DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: "Connection closed by [host]" when ssh to Cygwin sshd
In-Reply-To: <ekno4g$f12$1@sea.gmane.org>
MIME-Version: 1.0
References: <ekno4g$f12$1 AT sea DOT gmane DOT org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Uninstall sshd service using `cygrunsrvd -R sshd` then install it
using ssh-host-config and allow script to create sshd_server user when
it will ask for it. It will help.

On 12/1/06, Brian Kasper <kasper AT aero DOT org> wrote:
> I am *still* having problems getting ssh and sshd to work under WinXP
> 2003 x64.  I'm no longer seeing "error 1062" messages, but as of today
> (after I ran setup.exe to update my Cygwin install), whenever I try to
> ssh to localhost I immediately saw this message:
>
> Connection closed by 127.0.0.1
>
> I then wiped my Cygwin install and reinstalled.  I did *not* enable
> Privilege Separation when I ran ssh-host-config (as Administrator), and
> I have neither "sshd" nor "ssh_server" users on the machine.  Running
> ssh with multiple -v options shows this
>
> [many previous lines snipped]
> debug1: Offering public key: /home/kasper/.ssh/id_rsa
> debug3: send_pubkey_test
> debug2: we sent a publickey packet, wait for reply
> Connection closed by 127.0.0.1
>
> There are some interesting entries in the System and Application event
> logs.  When I start sshd, an event like the following appears in the
> System log:
>
> "A service process other than the one launched by the Service Control
> Manager connected when starting the CYGWIN sshd service.  The Service
> Control Manager launched process 2684 and process 2700 connected instead."
>
> When I try to connect with ssh, I see an error message in the
> Application log whose Description includes the text
>
> "The following information is part of the event: sshd: PID 2500: fatal:
> seteuid 1003: No such process."
>
> I'm using "CYGWIN_NT-5.2-WOW64 ABF466 1.5.22(0.156/4/2) 2006-11-13 17:01
> i686 Cygwin", according to "uname -a".
>
> I'm running a clean, up-to-date Cygwin install that I performed this
> morning as Administrator.
>
> I deleted both the sshd and ssh_service users on the system, and I'm
> running sshd as the "Local System" account, configured to NOT "allow
> service to interact with desktop".
>
> "cygrunsrv -Q sshd" returns
>
> Service             : sshd
> Display name        : CYGWIN sshd
> Current State       : Running
> Controls Accepted   : Stop
> Command             : /usr/sbin/sshd -D
>
> I'm running "OpenSSH_4.5p1, OpenSSL 0.9.8d 28 Sep 2006".
>
> If anyone has any ideas, I'll try anything.
>
> -B
>
>
> --
> Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
> Problem reports:       http://cygwin.com/problems.html
> Documentation:         http://cygwin.com/docs.html
> FAQ:                   http://cygwin.com/faq/
>
>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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