X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 239343858C56
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1722469827;
	bh=SGJCgY2YPAs9jt9vew1HMjVqe6kyzc6OEbwTW0SiKyM=;
	h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=oW+Z0a4SJDnTwfjqKzlUxgxKCxUiJkWK3Sfph4pKz9ZqmLeXgG9dM+oBj+t88oaDe
	 FuNQamPYii2bjx7fQ4wqxSXtZQaZrtLDoyWea5Sx5kxwMIqUrT5OR/Cyqy8sLhrzc6
	 cywkNElJjQ3WduiEe1mb6bVrmlzO7JhXx0wLWGJw=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 14C5A3858C56
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 14C5A3858C56
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722469771; cv=none;
 b=ENjSL8v3OuHWN+yOLjpndAQZ2KJh41AJBM6/xtZwdmDHSmXVamsM0POTgMuGnQGDHExGO2GLUzAySgMnPdedLPQJtcNuyjnXn/oXiEOHQho7zapS0lDYBzXYR3+VVo3yNyjCnTIswBAjPNOOr1HjirN8C/Pkl4Llup1vHlvMk3o=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1722469771; c=relaxed/simple;
 bh=/zzgecTAzFy32LRwtwzjy0e6j/k9FW5YHUEfBdHcxaM=;
 h=Message-ID:Date:MIME-Version:Subject:To:From;
 b=R2F4rMrv/lX+4RLtS3Ko0Dk496o6UcgfhJPV8qDAgPxNe5BiYPIHifmuhYAYJ5LvHbxydGYAJmjvExNVR2X9kFMi+ObrLED85L1nS4gET9s3jZ1j7HmdXBqRJBJcoBbvszHhrO2MAfrr7C5Q9OgQIetFWAkx8734YjTFHoRrFGE=
ARC-Authentication-Results: i=1; server2.sourceware.org
Message-ID: <95ef3fea-7398-4ffb-a4b5-50f9fb58512a@SystematicSW.ab.ca>
Date: Wed, 31 Jul 2024 17:49:27 -0600
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: no sshd in package for openssh
Content-Language: en-CA
To: cygwin@cygwin.com
References: <ewlFLN8eVMhWAiLLbZ_UnipA4pBVE0qbkaGf2GCKeyrvc7DrIPj0ZUTcacOLXK6a-RvQOGO64T7Yg__uxEgzf5mH4lW4qxgRiS5CzPrfYAQ=@proton.me>
Organization: Systematic Software
In-Reply-To: <ewlFLN8eVMhWAiLLbZ_UnipA4pBVE0qbkaGf2GCKeyrvc7DrIPj0ZUTcacOLXK6a-RvQOGO64T7Yg__uxEgzf5mH4lW4qxgRiS5CzPrfYAQ=@proton.me>
X-Rspamd-Queue-Id: 3183C2000E
X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
 RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP,
 UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6
X-Rspamd-Server: rspamout02
X-Stat-Signature: 6cgsecz7ius7knn4zc1e3uk5x71omxjq
X-Session-Marker: 427269616E2E496E676C69734053797374656D6174696353572E61622E6361
X-Session-ID: U2FsdGVkX1+8+WlkJKRCjZTU3cu/ZIDITTXRQMrmfdM=
X-HE-Tag: 1722469768-413715
X-HE-Meta: U2FsdGVkX1+XcpafOktXBsmaIM/TpICtEkwSyU0RtT5cs2a+iDFq1aIk9pWM2qYmt/RUHo04NBhVhE8Wgx7eUHdRcLemZ4uifZl8eEAwszEz643q9NKkZJPj7mxcVuh7cOz6Tck0bAMu2Hbxk69/LmAdMrv7dgSGGE5cKbdB8ziiSlNEBsqi9qa2BUnonMccvsHP0ZOrs+efMD99e0MQXI+4qBNSUjjF7KZJMaU5W6f8J8FsjvSoXT91SU5d3Z6PKi8kk+YK0j7HVIaVM2HSMQ9pKQ8gQVtNM7jpJdxsmujMpzCPiuty92LjAlZI8AEeew6Y00D6Go4RYKXojcujYe11xXEayjUlCVDpwFTA2FR6vhuOTfsbRza08lWknUh7UUnrRSPeapv3QnviQ79iZw==
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Brian Inglis via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Brian Inglis <Brian.Inglis@SystematicSW.ab.ca>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
Errors-To: cygwin-bounces~archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie.com@cygwin.com>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 46VNoReA621631

On 2024-07-31 13:16, Jim McNamara via Cygwin wrote:
> Hi-
> 
> I am running into a little difficulty with openssh can you please assist ?
> 
> thanks jim
> 
>   ./cygrunsrv --install sshd -d "Cygwin SSHD" -p /usr/bin/sshd -a "-D"
> ./cygrunsrv: Given path doesn't point to a valid executable
> Try `./cygrunsrv --help' for more information.
> 
> there is no sshd folder in /etc off of cygdrive
> 
> I think i have the latest package my setup version is
> 
> cygcheck (cygwin) 3.5.3
> System Checker for Cygwin
> 
> $ cygcheck.exe -i openssh
> Fetching setup.ini from cygwin.com...
> 
> Installed package:
> ------------------
> 
> Name        : openssh
> Version     : 9.8p1
> Release     : 1
> Architecture: x86_64
> Install Date: Wed Jul 31 15:03:46 2024
> Size        : 1073376 (1 M)
> Categories  : Net
> Source      : openssh-9.8p1-1-src.tar.xz
> Summary     : The OpenSSH server and client programs
> Description :
> OpenSSH is a program for logging into a remote machine and for
>          executing commands on a remote machine.  It can replace rlogin and rsh,
>          providing encrypted communication between two machines.
> Sent with Proton Mail secure email.
> 

As documented in /usr/share/doc/Cygwin/openssh.README start by reading then 
running /usr/bin/ssh-host-config to set up your keys and the server.

If required, you can later tweak your server setup by changing /etc/sshd_config 
and/or Windows `sc config sshd ...= ...` options.

Always ensure that Windows sshd and other related services are not running and 
are disabled or deleted before attempting to set up Cygwin sshd, as Windows 
likes to litter your system with unnecessary services which make your system 
vulnerable as they are rarely updated:

$ sc qc sshd
[SC] QueryServiceConfig SUCCESS

SERVICE_NAME: sshd
         TYPE               : 10  WIN32_OWN_PROCESS
         START_TYPE         : 4   DISABLED
         ERROR_CONTROL      : 1   NORMAL
         BINARY_PATH_NAME   : C:\WINDOWS\System32\OpenSSH\sshd.exe
         LOAD_ORDER_GROUP   :
         TAG                : 0
         DISPLAY_NAME       : OpenSSH SSH Server
         DEPENDENCIES       :
         SERVICE_START_NAME : LocalSystem
$ `cygpath -S`/OpenSSH/sshd -V			# current LibreSSL is 3.9.2
unknown option -- V
OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2			# 2019 releases
usage: sshd [-46DdeiqTt] [-C connection_spec] [-c host_cert_file]
             [-E log_file] [-f config_file] [-g login_grace_time]
             [-h host_key_file] [-o option] [-p port] [-u len]
$ sshd -V
OpenSSH_9.8p1, OpenSSL 3.0.14 4 Jun 2024

[I sometimes overwrite Windows security risks with Cygwin equivalents for 
safety's sake just in case.]

-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retirer     but when there is no more to cut
                                 -- Antoine de Saint-Exupéry

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

