sshd install troubles

Jason Dufair jase@dufair.org
Wed Oct 30 14:04:00 GMT 2002


Hi all -

I've installed Cygwin and sshd at least a half dozen times, but for some 
reason, I'm having a time of it now.

I have a fresh Windows XP install that belongs to a domain.  I install 
the latest Cygwin (1.3.14-1) from right off of www.cygwin.com.  I select 
openssh (3.4p1-5) and cygrunsrv (0.95-1) and leave all of the other pkgs 
as-is.

(btw, I might suggest cygrunsrv as a package dependency for openssh. 
I'd be glad to submit a patch, but it seems like a bit of overkill to do so)

I set up the CYGWIN system environment var as "binmode tty ntsec".  I did a
mkpasswd -d -u mydomainlogin >> /etc/passwd
and
mkgroup -d >> /etc/group

Then I ran ssh-host-config.  Answered yes to privelige separation, told 
it to create sshd user, told it to install as a service, let it use the 
defaults for the CYGWIN environment var and that was about it.

Unfortunately, the service won't start.  I get a Win32 error 1062.  I've 
searched the archives, but found nothing relevant.  The event log has 
errors, but nothing that seems worthy of reporting here.  There's 
nothing in /var/log, either.  When I try to run /usr/sbin/sshd from 
bash, I get

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.

I tried setting permissions on the above files to 666, which works but 
then I get a problem with permissions on /var/empty.  I've tried dozens 
of combinations of users, groups, and permissions on /var/empty to no 
avail.  Plus, it seems like a Really Bad Idea to have those files as 666.

Can anyone suggest a course of action?  I'd be glad to submit a patch. 
I'm not sure where to start, however.  Any pointers would be much 
appreciated.  Thanks!
-- 
Jason Dufair - jase@dufair.org
http://www.dufair.org/
"Every word is like an unnecessary stain on silence and nothingness."
-- Beckett


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list