Hello Brian,
/usr/share/doc/Cygwin/openssh.README states: If you start sshd as deamon via cygrunsrv.exe you MUST give the "-D" option to sshd. Otherwise the service can't get started at all.
chown SYSTEM /etc/ssh_host*_key chmod 600 /etc/ssh_host*_key
followed by: cygrunsrv -S sshd started the sshd service OK.
I have also verified the connection by: ssh localhost
ssh_host_*_key.pub are owned by the user that has run ssh-host-config Is it OK ?
Brian Dessent wrote:
a12 wrote:
I have also tried: cygrunsrv -S -D sshd with the following response: cygrunsrv: trailing commandline argument not allowed and: cygrunsrv -D -S sshd cygrunsrv: unknown option -- D
Why? There is no such option -D to cygrunsrv. Run "cygrunsrv --help" for a summary.
Here are the contents of /var/log/sshd.log : Could not load host key: /etc/ssh_host_key Could not load host key: /etc/ssh_host_rsa_key Could not load host key: /etc/ssh_host_dsa_key Disabling protocol version 1. Could not load host key Disabling protocol version 2. Could not load host key sshd: no hostkeys available -- exiting.
You'll need to change the permissions on those files. They should have read/write access to SYSTEM and nothing else. If you don't know what you're doing, try the following:
chown SYSTEM /etc/ssh_host*_key chmod 600 /etc/ssh_host*_key
Brian
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/

