X-Spam-Check-By: sourceware.org To: cygwin AT cygwin DOT com From: Brian Kasper Subject: "Connection closed by [host]" when ssh to Cygwin sshd Date: Thu, 30 Nov 2006 15:05:55 -0800 Lines: 55 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Thunderbird 1.5.0.8 (Windows/20061025) X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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/