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

Reply via email to