From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21812 invoked by alias); 22 Jun 2018 18:27:59 -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 21799 invoked by uid 89); 22 Jun 2018 18:27:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,KAM_NUMSUBJECT,SPF_PASS autolearn=no version=3.3.2 spammy=UD:msdn.microsoft.com, viewer, reboot, H*r:c385 X-HELO: mail-ed1-f46.google.com Received: from mail-ed1-f46.google.com (HELO mail-ed1-f46.google.com) (209.85.208.46) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 22 Jun 2018 18:27:57 +0000 Received: by mail-ed1-f46.google.com with SMTP id a5-v6so1738659edt.5 for ; Fri, 22 Jun 2018 11:27:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=RDljq1zZV+xrv1kv4NnDEHSQk0rTmcGoiIuQSt8qMEU=; b=NqgVw0gRHkRwAGW68P5+nIIn/FP4ztmJg6su5HAl48+LgpBidU6y01k7faDdHMzCbP 94sv2mN+68vz5/0dkzAMTz25rD3p0Kb46KXp6XxQapeMeZxNAZa4obJOQVWd3El2u35w 9znzvIvyzJO/+/2h/QMeGa6rVQsyVTTgc6a4KyBVjr5IxLZoGuIIWFyGuFUs5RpK6Es/ /4dyXfacs9jfbyvEFHcAlKTn7SqFsPUGQ6FvZgplbQNQZCDzNeZGzFtCSto3vPFNikC5 sAmwzYYN7diesVWvXKcZQyZNNSQ8dF10kwn3n8d4SNRKUxVH1Kq12zd2TnX5LnK9ArYJ Hwsg== X-Gm-Message-State: APt69E3nbDRWa04XNf7XG7Yro2tOHXsf3cxVUc1XFs8/qdLl44qpaoJK B8EGQmSOLXES4KVBcRahtvP0QhHO5nUSwnzD68k= X-Google-Smtp-Source: ADUXVKJe8FaGqY0fIhvKoiPPioVBnzS5n5BiBvXG0PKw5WxUreOxLCijH/QZwhwE1sV1rfC+luxcitf37GYIv8ACwDk= X-Received: by 2002:a50:ce12:: with SMTP id y18-v6mr244983edi.221.1529692074894; Fri, 22 Jun 2018 11:27:54 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a50:c385:0:0:0:0:0 with HTTP; Fri, 22 Jun 2018 11:27:54 -0700 (PDT) From: Hiya Z Date: Fri, 22 Jun 2018 20:42:00 -0000 Message-ID: Subject: sshd issues on Windows 10 version 1803 To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" X-SW-Source: 2018-06/txt/msg00252.txt.bz2 Hello, Now that Microsoft has bundled OpenSSH for Windows in update 1803 (see https://blogs.msdn.microsoft.com/commandline/2018/03/07/windows10v1803/), here are some observations and the resulting unfortunate behavior: - On a clean vanilla 1803 install, even with Windows Subsystem for Linux (WSL) not installed, there exists a folder %SystemRoot%\system32\openssh that has native Windows ssh and sshd executables. - %SystemRoot%\system32\openssh is added to the system PATH. - a (manual start) service "sshd", displayname="OpenSSH SSH Server", imagepath=%SystemRoot%\system32\openssh\sshd.exe, gets created. All of the above have the unfortunate consequence that Cygwin sshd no longer works reliably on a 1803 install. First, the service name "sshd" conflicts. This can be worked around by something like "ssh-host-config -N cygwinsshd". Even then, the Cygwin sshd does not always automatically start upon reboot. The Windows sshd is not configured/running, so there should not be a port conflict. SCM reports timeouts (waiting for cygwinsshd to respond) in the event viewer. A manual "sc start cygwinsshd" works, but again, upon the next reboot, the problem is back. 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 really 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 of not autostarting reliably upon reboots. I am not sure what Cygwin can do... but reporting this issue to see if Cygwin sshd can be fixed to autostart reliably upon reboots. As a minimum, the default service name in ssh-host-config should be changed to not collide with Windows "sshd". Thanks. -- 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