From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29397 invoked by alias); 27 Dec 2019 05:00:46 -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 29291 invoked by uid 89); 27 Dec 2019 05:00:37 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_WEB,SPF_PASS autolearn=no version=3.3.1 spammy=cygwinannounce, cygwin-announce, presumably, us X-HELO: mail-wm1-f47.google.com Received: from mail-wm1-f47.google.com (HELO mail-wm1-f47.google.com) (209.85.128.47) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 27 Dec 2019 05:00:36 +0000 Received: by mail-wm1-f47.google.com with SMTP id a5so7249264wmb.0 for ; Thu, 26 Dec 2019 21:00:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=A8Mmd33dJd0VwHCl8RbrWeQgoMNuNsIpfvgoQHcO0oc=; b=kp4Qduo6n4Lj4HgrKvbpozRxXD421o/iJ3aUO7bpd4T0eRuy/royVXJZjSCq203cUP 78MthLrZCEn+m3Ia6p7WosQVF/xHc+GJEFnLAcmo8db79ICbxWZdm74mshlP2ACqfnAf 8MfmxMWRSYm658ALiRQhJL1zYranaJDNB7gRaM7rXi7tpXatJQIabhJT8UOu1CCUz7o5 kacw/k8WfTQZQmtNW//fU9HdECnBvvkDvMCFnmW/BNzRUXnUnEuMaiOYIPN0zjzoLjNG hqEYZXgkF7lxHYJdfndF4a1KyavDvf8Su82CVRFirmxcqCrRjVbG8eYh1UIrTVdaqImp LxAw== Return-Path: Received: from [192.168.0.11] ([151.60.83.131]) by smtp.gmail.com with ESMTPSA id h17sm34804169wrs.18.2019.12.26.21.00.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Dec 2019 21:00:32 -0800 (PST) Subject: Re: installing sshd | Win 10 1909 build To: cygwin@cygwin.com References: <79ab161a-5e1d-e6b2-f46c-275ce7dd719b@gmail.com> <1934397243.20191227000253@yandex.ru> <9f8f05c4-2a03-7fef-0e76-207b53273acb@gmail.com> From: Marco Atzeri Message-ID: <4442b520-b723-4f9e-e29d-78743db7db52@gmail.com> Date: Fri, 27 Dec 2019 07:20:00 -0000 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2019-12/txt/msg00288.txt.bz2 Am 27.12.2019 um 00:03 schrieb Evan Cooch: > > > On 12/26/2019 4:48 PM, Marco Atzeri wrote: >> Am 26.12.2019 um 22:13 schrieb Evan Cooch: >>> Thanks, but insufficient. Where is the Cygwin sshd equivalent of the >>> following for the Windows 10 implementation of OpenSSH?: >>> >>> https://www.pugetsystems.com/labs/hpc/How-To-Use-SSH-Client-and-Server-on-Windows-10-1470/ >>> >>> >>> Is there an equivalent for Cygwin sshd, that deals in a step-by-step >>> fashion specifically with handling recent build of Windows 10, all of >>> which have openSSH pre-installed? >>> >> >> Evan, >> Bottom post on this mailing list, please. > > Sure -- will do moving forward. > >> >> $ cygcheck -p bin/sshd >> Found 4 matches for bin/sshd >> openssh-debuginfo-8.0p1-2 - openssh-debuginfo: Debug info for openssh >> openssh-debuginfo-8.1p1-1 - openssh-debuginfo: Debug info for openssh >> openssh-8.0p1-2 - openssh: The OpenSSH server and client programs >> openssh-8.1p1-1 - openssh: The OpenSSH server and client programs >> >> so openssh is the package providing the ssh demon/server > > Presumably on a machine running the cygwin sshd, correct? no. Option -p asks the cygwin website and the reply provides all packages and versions. For this reason I asked for bin/sshd to trim the answer only to binary programs >> $ cygcheck -l openssh | grep config >> /etc/defaults/etc/sshd_config >> /etc/defaults/etc/ssh_config >> /usr/bin/ssh-host-config >> /usr/bin/ssh-user-config >> /usr/share/man/man5/sshd_config.5.gz >> /usr/share/man/man5/ssh_config.5.gz Option -l is for the current installation >> >> ssh-host-config is used to install and configure the Cygwin server >> ssh-user-config is used to install user specific files. >> Its use is very simple, step by step approuch as mentioned on >> /usr/share/doc/Cygwin/openssh.README >> >> >> As you can not have two different sshd demons running >>  at the same time, use "net start " and >> "net stop " that are your usual windows command friends. > > OK -- but my question wasn't so much about using openSSH, but rather, > how to do an install of Cygwin ssh on a Win 10 machine, which already > has a native ssh server client 'bult in'. A number of us have tried > using the standard approaches for installing cygwin and having sshd run > as a service (approaches that worked fine on Win 7, and pre-1803 builds > of WIn 10), but have had problems with Windows complaining (or, if not > complaining, not allowing a different sshd). It seems as if you need to > 'turn off' or 'uninstall' something with recent Win 10 builds to get > Cygwin sshd to install -- and work -- as a service.  That is the step > some of us  are hoping someone can step us through. for what I remenber the collision in installing was caused by MS calling the service sshd just as Cygwin one. Now the service is installed as cygsshd so there should be no collision in installation. See on https://www.cygwin.com/ml/cygwin-announce/2019-04/msg00017.html "* sshd(8) Cygwin: Change service name to cygsshd to avoid collision with Microsoft's OpenSSH port." Of course you can not have the two runnning together so you neeed to stop or disable the MS one. For that you can use C:\Windows\System32\services.msc or the MS "net" command Regards Marco -- 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