Re: Cygwin SSHD 32bit
On Tue, Aug 23, 2016 at 12:43 PM, Marcel Grandemange wrote: > I have entirely disabled the firewall at one point and this didn't help. > Also keep in mind I did install bitvise ssh server to do a comparison and > this worked. Then I don't know, though I will be watching this thread for a possible solution to my issue as well. Also, please do not top post -- Erik -- 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
RE: Cygwin SSHD 32bit
I have entirely disabled the firewall at one point and this didn't help. Also keep in mind I did install bitvise ssh server to do a comparison and this worked. I would also like to add to this I also went through the effort of removing the SSH packages from Cygwin and built from source OpenSSH as well at one point which also I might add , had ther exact same issues. -Original Message- From: cygwin-ow...@cygwin.com [mailto:cygwin-ow...@cygwin.com] On Behalf Of Erik Soderquist Sent: Tuesday, August 23, 2016 6:35 PM To: cygwin@cygwin.com Subject: Re: Cygwin SSHD 32bit On Tue, Aug 23, 2016 at 12:24 PM, Marcel Grandemange wrote: > 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 I had this error on a Windows Home Server v1 (server 2003 SB base) and the only way I was able to resolve it was to disable the Microsoft firewall on the host and use an external firewall. It seems to be a problem with the Microsoft firewall in my experience. I had tried both opening tcp/22 and the executable (either/or as well as together) to no avail. -- Erik -- 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 -- 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
Re: Cygwin SSHD 32bit
On Tue, Aug 23, 2016 at 12:24 PM, Marcel Grandemange wrote: > 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 I had this error on a Windows Home Server v1 (server 2003 SB base) and the only way I was able to resolve it was to disable the Microsoft firewall on the host and use an external firewall. It seems to be a problem with the Microsoft firewall in my experience. I had tried both opening tcp/22 and the executable (either/or as well as together) to no avail. -- Erik -- 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
Cygwin SSHD 32bit
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 - 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 -d 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]='-d' 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