delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/06/22/14:28:09

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:mime-version:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=f8HEEMNb0njqCF3F+Ot8qHm9ZvTOV
7M99+MbF+HPtvzOnLDTM3sxlnlhof+4nttgM317AW8uifF2IOhz8c3uYZHy5lu3/
qGUpjgwYTlbXNKuUHpPB90LUqP7ksbCf4Yis/w9vdhXqihy/o0t+NUCR/dYNc9O1
pHszxSJDcdpjzM=
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:mime-version:from:date:message-id:subject:to
:content-type; s=default; bh=Jm//4IhmdBwoX6Pso71MzJADqQw=; b=XNH
TjDz2SHkec7YKua7lxcW/zHF6eiHG7CFXq/IRVhP1SMuKzFESK4l0ZXDgTb/U74n
K9WmmBxPKGM6Zj7KPjamnVeN/sbqTLeUh2RuLKDnkFbV5C91rzkvPPnSDfyYLPxS
lNsYh/qQ2PGFJeczh4THBmOj1yx7aUFLlHWeaaD8=
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=-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
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
From: Hiya Z <hiya DOT zyx AT gmail DOT com>
Date: Fri, 22 Jun 2018 11:27:54 -0700
Message-ID: <CAFcD33OUWb2rvHhvkbvW7PP49NMCt_M2Y+erc0_wAYSGvvrYDw@mail.gmail.com>
Subject: sshd issues on Windows 10 version 1803
To: cygwin AT cygwin DOT com

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

- Raw text -


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