delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/08/23/12:25:16

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:references:in-reply-to:subject:date
:message-id:mime-version:content-type:content-transfer-encoding;
q=dns; s=default; b=F2tB4dFB8lRkaehJSyQdXS2hwcpor5R92/LHPnRsvqO
f3+657mrgi8d9Iu9paX0n4S+CiVZAM6etjC2DeKUJHyG9i5CgrnEEsxLgnKskf6j
jzXRHlwXPYZmydaim35ijGm/TSP1YyURC6Bg/06ZIrC/VSqEc2GANJFcw52a2Xo4
=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:references:in-reply-to:subject:date
:message-id:mime-version:content-type:content-transfer-encoding;
s=default; bh=h8SZmtSZXrYcQtl8XUbYGBeYJo8=; b=Tvl9kyrEHjpjMigJV
sLPlvt6teWcFXbxMAoRVzUAqI2a7ZsbhCh/wErgjEj7Bi7MLW9yuTIvKYwKme5RT
lQLqlj8Z3KS1+Nx3aBaFRWZm7HWbMWQw+YnOw6p6AWHorKSEXJ7qP3uFMVBkVUv4
fjokCJ8YBlsYPPDg/NicqdFn3Q=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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
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
From: Marcel Grandemange <marcel AT antfarm DOT co DOT za>
To: <cygwin AT cygwin DOT com>
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 18:24:50 +0200 (SAST)
Message-ID: <a09501d1fd5a$dd0e2230$972a6690$@antfarm.co.za>
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u7NGPCrb016474

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  2.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  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 = 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    
/usr/sbin/sftp-server
debug1: sshd version OpenSSH_7.3, OpenSSL 1.0.2h  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]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-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 = 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 “SSH2_MSG_KEXINIT sent”
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


- Raw text -


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