Silently configure sshd fails via system account

Wed Mar 19 10:14:00 GMT 2014

Paul Griffith wrote
> ...
> /usr/bin/ssh-host-config --yes --cygwin ntsec --user cyg_server --pwd blah
> ...

Just a few things...

1) Don't do that (manually). 
First of all, "ntsec" is deprecated. Second, there are a lot of strange
issues when 
using "--yes", just answer the questions manually, especially since you
don't need 
all those keys just to have ssh work. 

2) Make sure you run the ssh-host-config from an "administrator: cygwin

3) Check your /etc/sshd-config for: "UsePrivilegeSeparation sandbox" which
the new default. The ssh-host-config script has a bug on line 169 that
to set this to "no", but where the regex fails. (I told people in  THIS
nabble post, but I 
don't think it ever reached the main mailing list.)

4) The sshd user pas-wor-d is set to expire by default after 42 days, in
Windows 8.1. 
Fix it if you're using that.

View this message in context:
Sent from the Cygwin list mailing list archive at

Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list