ssh-host-config does not work on latest windows 10

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

Ravi Yadav

Posted 2019-05-22T18:50:12.533

Reputation: 103

Answers

0

step b is not anymore needed.

The problem with ssh-host-config is that Microsoft installs now as default a sshd so you need to use another name as mentioned on latest release

https://www.cygwin.com/ml/cygwin-announce/2019-04/msg00017.html

Portability
-----------

 * sshd(8) Cygwin: Change service name to cygsshd to avoid collision
   with Microsoft's OpenSSH port.

matzeri

Posted 2019-05-22T18:50:12.533

Reputation: 1 662

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.107

done using ssh-host-config -N cygsshd – Ravi Yadav – 2019-05-24T07:47:29.513

Info: 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