X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Message-ID: <502ABEF8.6010605@gmx.de> Date: Tue, 14 Aug 2012 23:11:20 +0200 From: =?UTF-8?B?SsO2cmcgR2VybGFjaA==?= User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: sshd service needs to be restarted after every boot Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 Hi, I try to run sshd as a service on a windows 7 system. All works fine after I manually stops and start the sshd service (with "net stop/start sshd" command). But without that the client shows: client AT server:/root$ ssh -vvv -p 2222 user AT windowsPC OpenSSH_5.9p1 Debian-5ubuntu1, OpenSSL 1.0.1 14 Mar 2012 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to windowsPC [192.168.0.10] port 2222. debug1: Connection established. debug3: Incorrect RSA1 identifier debug3: Could not load "/client/.ssh/id_rsa" as a RSA1 public key debug1: identity file /client/.ssh/id_rsa type 1 debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048 debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048 debug1: identity file /client/.ssh/id_rsa-cert type -1 debug1: identity file /client/.ssh/id_dsa type -1 debug1: identity file /client/.ssh/id_dsa-cert type -1 debug1: identity file /client/.ssh/id_ecdsa type -1 debug1: identity file /client/.ssh/id_ecdsa-cert type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_6.0 debug1: match: OpenSSH_6.0 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1 debug2: fd 3 setting O_NONBLOCK debug3: put_host_port: [windowsPC]:2222 debug3: load_hostkeys: loading entries for host "[windowsPC]:2222" from file "/client/.ssh/known_hosts" debug3: load_hostkeys: found key type ECDSA in file /client/.ssh/known_hosts:1 debug3: load_hostkeys: loaded 1 keys debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01 AT openssh DOT com,ecdsa-sha2-nistp384-cert-v01 AT openssh DOT com,ecdsa-sha2-nistp521-cert-v01 AT openssh DOT com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521 debug1: SSH2_MSG_KEXINIT sent Connection closed by 192.168.0.10 and on the windows host I get an error event from sshd: sshd: PID 1104: fatal: Write failed: Socket operation on non-socket [preauth] The installation and configuration of the sshd-service was made with following steps: 1) Install cygwin with an extra administrator account (Packages: openssh, vim, wget, curl, mc, rsync, shutdown) 2) run ssh-host-config (reply all questions with "yes", keep default values for cygwin deamon and name) 3) add rules for the windows firewall and start sshd 4) ssh-copy-id from the client to the windows host I already use sshd on other windows7 systems successfully with the same configuration. There I don't need to restart the sshd service after boot. Regards Jörg Gerlach. -- 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