From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107420 invoked by alias); 25 Jun 2018 14:25:11 -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 107281 invoked by uid 89); 25 Jun 2018 14:25:02 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE,TIME_LIMIT_EXCEEDED autolearn=unavailable version=3.3.2 spammy=family X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (212.227.17.13) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 25 Jun 2018 14:24:46 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue105 [212.227.15.183]) with ESMTPSA (Nemesis) id 0MNtql-1fW3Nl1nDv-007T2j for ; Mon, 25 Jun 2018 16:24:38 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id C9B97A81974; Mon, 25 Jun 2018 16:24:37 +0200 (CEST) Date: Mon, 25 Jun 2018 20:20:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: sshd issues on Windows 10 version 1803 Message-ID: <20180625142437.GN28757@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <20180625121009.GA29611@calimero.vinschen.de> <20180625140817.GM28757@calimero.vinschen.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="9aCKuHbn5v2q3RVc" Content-Disposition: inline In-Reply-To: <20180625140817.GM28757@calimero.vinschen.de> User-Agent: Mutt/1.9.2 (2017-12-15) X-SW-Source: 2018-06/txt/msg00280.txt.bz2 --9aCKuHbn5v2q3RVc Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 2337 On Jun 25 16:08, Corinna Vinschen wrote: > On Jun 25 14:10, Corinna Vinschen wrote: > > On Jun 22 11:27, Hiya Z wrote: > > > Hello, > > >=20 > > > Now that Microsoft has bundled OpenSSH for Windows in update 1803 (see > > > https://blogs.msdn.microsoft.com/commandline/2018/03/07/windows10v180= 3/), > > > here are some observations and the resulting unfortunate behavior: > > >=20 > > > - On a clean vanilla 1803 install, even with Windows Subsystem for L= inux > > > (WSL) not installed, there exists a folder %SystemRoot%\system32\open= ssh > > > that has native Windows ssh and sshd executables. > > >=20 > > > - %SystemRoot%\system32\openssh is added to the system PATH. > > >=20 > > > - a (manual start) service "sshd", displayname=3D"OpenSSH SSH Server= ", > > > imagepath=3D%SystemRoot%\system32\openssh\sshd.exe, gets created. > > >=20 > > > All of the above have the unfortunate consequence that Cygwin sshd no > > > longer works reliably on a 1803 install. First, the service name "ssh= d" > > > conflicts. This can be worked around by something like "ssh-host-conf= ig -N > > > cygwinsshd". Even then, the Cygwin sshd does not always automatically= start > > > upon reboot. The Windows sshd is not configured/running, so there sho= uld > > > not be a port conflict. SCM reports timeouts (waiting for cygwinsshd = to > > > respond) in the event viewer. A manual "sc start cygwinsshd" works, b= ut > > > again, upon the next reboot, the problem is back. > > >=20 > > > There are other permutations depending on the sequence of install. If= I > > > were to upgrade a Windows 10 1709 node with a working Cygwin sshd, it= seems > > > that the 1803 update detects an existing sshd registry key (which rea= lly is > > > Cygwin), does not clobber the registry keys, nor does it install sshd= .exe > > > under %SystemRoot%\system32\openssh (though ssh.exe and family get > > > installed). Even on this node, the Cygwin sshd shows the same issue o= f not > > > autostarting reliably upon reboots. Btw., I can't reproduce this problem. Cygwin's sshd service always starts for me at boottime as expected. Did you check if the log file in /var/log contains any more info? Corinna --=20 Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Maintainer cygwin AT cygwin DOT com Red Hat --9aCKuHbn5v2q3RVc Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlsw+yUACgkQ9TYGna5E T6D3gQ/9EvUz5H4Klw1MuspQoSYbovnNrOO5sLBGhegvv0RAvsI4LV9mt8/uIQJY zwLVmEbNT5YrZCI/oGRj9/b5OQgJnrwTZArddp5u9IrmTlqeVHC8Yp9o5zwV4J2g gXiYnYSeheWPCGTwi2sIxliZvnRlHYnGN6LffGyCSJi/wu/Tms5Jy3ptyyl0XQrx /RN23IHgoYT8IuM6ADKv8eOsEcjnhQJ+GVYKbpZMqk+43rHsVK/ovBWFDGVaLSOz d4fVxCl+B7KW92c73KntcfCmtLXzjudIBMGJOj9A9DgN57Ycf1LvCAtVHUvH0YHN JDw8gc4VKV6lR1/PUy+HKmbk8sqfmy7B0GZSvNzW/mHYmCBTW3NlpY0hdK6EAr5g A2OG+1cbr5+Dqs4rwwKkT/e0DZfz5Szhx83r2v4MpZKX1b0RRLhg7ljEZIeaAnle 5KF2OP7dUrDpw29UEYwlqG6rEWxUufUO/8o9p3MpJTlBS7fy4AnCBIvdKVaCG5Wa f1Q2EizMqU6ei9xIt/NGHDRdG95a0xWqY4GCOlnFc+vPPJgH3aBcT83gwUC7v6Q4 LW3n42W76HahT56sGZrJz/qeNdX+La9PEeCJiXynsF90kOzB0Smql7luapYWmf4g HDxqrGQ3Jqk1kJI51zP7QQLsK8KDhVifYNtmIYYI+edc+HnT/0Q= =1wXP -----END PGP SIGNATURE----- --9aCKuHbn5v2q3RVc--