0
What is did ?
a) Install cygwin via below command
C:\tmp\setup-x86_64.exe -q -B -R C:\cygwin -s http://cygwin.mirror.constant.com -l C:\tmp -A -o -P curl,rsync,dos2unix,make,git,unzip,openssh OpenSSL
b)
mkpasswd -l -c > C:\cygwin\etc\passwd
mkgroup -l -c > C:\cygwin\etc\groups
What I expected on executing below ?
ssh-host-config
Expected :
*** Query: Should StrictModes be used? (yes/no) yes
*** Query: Should privilege separation be used? <yes/no>: yes
*** Query: New local account 'sshd'? <yes/no>: yes
*** Query: Do you want to install sshd as a service?
*** Query: <Say "no" if it is already installed as a service> <yes/no>: yes
*** Query: Enter the value of CYGWIN for the deamon: [] binmode ntsec
*** Query: Do you want to use a different name? (yes/no) yes/no
Actual :
*** Query: Should StrictModes be used? (yes/no) yes
*** Info: Updating /etc/sshd_config file
*** Info: Sshd service is already installed.
*** Info: Host configuration finished. Have fun!
Note: In previous windows 10 and win7 things worked as expected but not in latest winodws 10 becuase windows have started giving OpenSSL pre-installed. Uninstalling it doesn't solve the problem either. You can find it installed under C:\Windows\system32\openssl\sshd.exe
I see that service name is already changes in latest ssh-host-config file
sshd_config_configured=no
port_number=22
service_name=cygsshd
strictmodes=yes
– Ravi Yadav – 2019-05-24T07:01:40.107done using
ssh-host-config -N cygsshd
– Ravi Yadav – 2019-05-24T07:47:29.513Info: Thing like demon name, username and password are not asked while ssh-host-config , but things still work. – Ravi Yadav – 2019-05-24T10:15:57.517