From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 41642 invoked by alias); 23 Aug 2016 16:25:00 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 41612 invoked by uid 89); 23 Aug 2016 16:25:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=BAYES_50,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=listening, 2200, H*F:D*za, H*F:D*co.za X-HELO: mta23-dc01.cm.synaq.com Received: from mta23-dc01.cm.synaq.com (HELO mta23-dc01.cm.synaq.com) (197.97.112.93) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 23 Aug 2016 16:24:55 +0000 Received: from localhost (localhost [127.0.0.1]) by mta23-dc01.cm.synaq.com (Postfix) with ESMTP id 55E2C140363 for ; Tue, 23 Aug 2016 18:24:51 +0200 (SAST) Received: from mta23-dc01.cm.synaq.com ([127.0.0.1]) by localhost (mta23-dc01.cm.synaq.com [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id CA2OqegezBLc for ; Tue, 23 Aug 2016 18:24:50 +0200 (SAST) Received: from localhost (localhost [127.0.0.1]) by mta23-dc01.cm.synaq.com (Postfix) with ESMTP id D9CBE140366 for ; Tue, 23 Aug 2016 18:24:50 +0200 (SAST) Received: from mta23-dc01.cm.synaq.com ([127.0.0.1]) by localhost (mta23-dc01.cm.synaq.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id weSCnXGtAxzR for ; Tue, 23 Aug 2016 18:24:50 +0200 (SAST) Received: from store105-dc01.cm.synaq.com (store105-dc01.cm.synaq.com [10.1.5.124]) by mta23-dc01.cm.synaq.com (Postfix) with ESMTP id C09B9140363 for ; Tue, 23 Aug 2016 18:24:50 +0200 (SAST) From: Marcel Grandemange To: References: <0c9f01d1fd50$f070cb70$d1526250$@antfarm.co.za> In-Reply-To: <0c9f01d1fd50$f070cb70$d1526250$@antfarm.co.za> Subject: Cygwin SSHD 32bit Date: Tue, 23 Aug 2016 16:44:00 -0000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes X-SW-Source: 2016-08/txt/msg00435.txt.bz2 Good Day I would really appreciate it if someone can assist me. I have a Windows server 2003 server with the latest Cygwin installed. CYGWIN_NT-5.2 =A02.5.2(0.297/5/3) 2016-06-23 14:27 i686 Cygwin I have setup the SSH service as I have many a time before on other servers. The service successfully starts however I cannot SSH into the machine and am presented with the following error: ssh_exchange_identification: read: Connection reset by peer Note that I have allowed it through the firewall and this error is even present on the machine itself $ ssh -vvvv localhost OpenSSH_7.3p1, OpenSSL 1.0.2h=A0 3 May 2016 debug1: Reading configuration data /etc/ssh_config debug2: resolving "localhost" port 22 debug2: ssh_connect_direct: needpriv 0 debug1: Connecting to localhost [127.0.0.1] port 22. debug1: Connection established. debug1: identity file /home/Marcel/.ssh/id_rsa type 1 debug1: key_load_public: No such file or directory debug1: identity file /home/Marcel/.ssh/id_rsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/Marcel/.ssh/id_dsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/Marcel/.ssh/id_dsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/Marcel/.ssh/id_ecdsa type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/Marcel/.ssh/id_ecdsa-cert type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/Marcel/.ssh/id_ed25519 type -1 debug1: key_load_public: No such file or directory debug1: identity file /home/Marcel/.ssh/id_ed25519-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_7.3 ssh_exchange_identification: read: Connection reset by peer There are no hosts.allow or hosts.deny files present on this machine and Cygwin has been reinstalled several times under different users to test permission theories I had. When I change the permission of the /var/empty folder to my current user to allow me to run the sshd Daemon as my current user I see the following: $ /usr/sbin/sshd -ddddd debug2: load_server_config: filename /etc/sshd_config debug2: load_server_config: done config len =3D 288 debug2: parse_server_config: config /etc/sshd_config len 288 debug3: /etc/sshd_config:19 setting Protocol 2 debug3: /etc/sshd_config:43 setting PermitRootLogin yes debug3: /etc/sshd_config:53 setting AuthorizedKeysFile .ssh/authorized_keys debug3: /etc/sshd_config:79 setting KerberosOrLocalPasswd yes debug3: /etc/sshd_config:109 setting UsePrivilegeSeparation yes debug3: /etc/sshd_config:125 setting Subsystem sftp=A0=A0=A0=A0 /usr/sbin/sftp-server debug1: sshd version OpenSSH_7.3, OpenSSL 1.0.2h=A0 3 May 2016 debug1: private host key #0: ssh-rsa SHA256:eH6f4o7GOW6xajSHXQywMtsWmocl4PzgNy6o1Dmbxoc debug1: private host key #1: ssh-dss SHA256:pZxX5Ddzn6mR5sOlRPjNV3mtXgJTSpZjkSgpySz0wsI debug1: private host key #2: ecdsa-sha2-nistp256 SHA256:dyTs9OY0gaXfEv09jx3DZYlgEUjBQKKGkQJ/ioTG2qQ debug1: private host key #3: ssh-ed25519 SHA256:KeIpfsnyBDf2V7OH9BFjx8xmhh/HwqJ2QUOyUPy6hsM debug1: rexec_argv[0]=3D'/usr/sbin/sshd' debug1: rexec_argv[1]=3D'-ddddd' debug2: fd 3 setting O_NONBLOCK debug1: Bind to port 22 on 0.0.0.0. Server listening on 0.0.0.0 port 22. debug1: fd 4 clearing O_NONBLOCK debug1: Server will not fork when running in debugging mode. debug3: send_rexec_state: entering fd =3D 7 config len 288 debug3: ssh_msg_send: type 0 debug3: send_rexec_state: done debug1: rexec start in 4 out 4 newsock 4 pipe -1 sock 7 debug1: inetd sockets after dupping: 3, 3 It seems that the SSH daemon never gets to the =93SSH2_MSG_KEXINIT sent=94 stage. I have attempted numerous modifications of the setup and daemon config, eventually just to confirm all networking aspects are correct I installed bitvise ssh server and this worked, however I really need to get Cygwin working correctly. I have also tried changing the default port to 2200 but all yield same result. Any Ideas? Kind Regards Marcel Grandemange OPS Manager Antfarm (PTY) Ltd Tel: 012 346 7511 Direct : 0100072640 -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple