X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A6E173858430 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1722503818; bh=AeyPqRyJNfz9RNTk2imHKGl03kHfIbiPdOo84DPoJcs=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=xjPbdBX0gFGZOSLEAFCvrW4S/FUBYHcJ50uoCpT8rhnoTO9sOfLGfwyC9avwEvkQ1 FGiBZOA5u0PK1Kf8V80VeWHgSWPY7LU+j1kyCiLAqqp4RK8cLDBGVnq+1fimQtgIIx OkUy4JYgz06kpY8LuiVrMREK6NjKK/TPVg5QeAWo= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org E16E53858414 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org E16E53858414 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722503716; cv=none; b=IaNM1okiZaHmD0QmBLEQNZxpIdgzQHatvgjEQSpCqHF+gPNnblXLi0TlxpZGCOV+Q1skmYYRvSb1x0T9CyaxhUgtkt2wfiLW5BwsHtC+oD16hVCDfrlcC/Dkus8lm5ydaass5c14dqYNhEaHOEzEIoMDPJLYorY2YyXkpZJ7X6c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1722503716; c=relaxed/simple; bh=LcTUGZLZZM1gp7cN4aKRo35dw3xCiUPGqZ+zWedGGuk=; h=Date:From:To:Subject:Message-ID:MIME-Version; b=VV5SMlJYLXGlnno0N0qGGTCuRSh6Un8H4vmW1FKNtnf9qB4gExXDqb/SMKvikZLxigzIkM3PCOnHG2Q6QD3pOML+FyYpQKoqTGNTpuXH3bp14uI6T1LnqXev+lwfwRvH9xNJo7TR00hmjX2PucKPdaDLVGDlXFK81VZ2xcLDefk= ARC-Authentication-Results: i=1; server2.sourceware.org Date: Thu, 1 Aug 2024 09:15:12 +0000 To: Brian Inglis via Cygwin Subject: Re: no sshd in package for openssh Message-ID: Mail-Followup-To: Brian Inglis via Cygwin References: <95ef3fea-7398-4ffb-a4b5-50f9fb58512a AT SystematicSW DOT ab DOT ca> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <95ef3fea-7398-4ffb-a4b5-50f9fb58512a@SystematicSW.ab.ca> User-Agent: NeoMutt/20230407 X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Dr Bean via Cygwin Reply-To: Dr Bean Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" On Wed, 31 Jul 2024, Brian Inglis via Cygwin wrote: > 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.] Making use of the above to disable the Windows' OpenSSH SSH Server with 'sc config sshd start= disabled' I had to also disable the incoming firewall rule for OpenSSH SSH Server Preview (sshd) (and create one for CYGWIN cygsshd) Connections were timing out with no program to connect to. -- Greg "Dr Bean" Matheson Teaching: brain surgery http://drbean.sdf.org with a blunt instrument drbean AT freeshell DOT org --Dr Bean -- 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