This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: problem installing cygwin+sshd


Michael wrote:

> I'm trying to install cygwin+sshd on a WinXPPro-machine, but get an
> error, when starting the service.
[snip]

> no /var/log/ssh* files (???)

Normal if it didn't run.

> ls -l /etc/ssh*
> -rwxr-x--- 1 SYSTEM mkgroup-l-d 1418 Feb 15 03:02 ssh_config
> -rw------- 1 SYSTEM mkgroup-l-d  672 Feb 15 03:02 ssh_host_dsa_key
> -rw-r--r-- 1 SYSTEM mkgroup-l-d  611 Feb 15 03:02 ssh_host_dsa_key.pub
> -rw------- 1 SYSTEM mkgroup-l-d  984 Feb 15 03:02 ssh_host_key
> -rw-r--r-- 1 SYSTEM mkgroup-l-d  648 Feb 15 03:02 ssh_host_key.pub
> -rw------- 1 SYSTEM mkgroup-l-d 1675 Feb 15 03:02 ssh_host_rsa_key
> -rw-r--r-- 1 SYSTEM mkgroup-l-d  403 Feb 15 03:02 ssh_host_rsa_key.pub
> -rw-r--r-- 1 SYSTEM mkgroup-l-d 3039 Feb 15 03:02 sshd_config

Looks fine, you'll have to run mkpasswd and mkgroup to get proper users and
groups but I don't think this is a problem now; later it may be.

> I also changed the dir-permissions of c:\cygwin, c:\cygwin\var and
> c:\cygwin\var\log for "user" SYSTEM manually

Wrong, not needed and may make things worse.

> what else can I check???

Just to make sure that all the libraries are there (they should be):

$ cygcheck -f /usr/bin/cygz.dll /usr/bin/cygcrypt-0.dll /usr/bin/cygcrypto-0.9.8.dll

Then check the output of:

$ cygrunsrv -V -Q sshd
Service             : sshd
Display name        : CYGWIN sshd
Description         : sshd
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/sshd -D
stdin path          : /dev/null
stdout path         : /var/log/sshd.log
stderr path         : /var/log/sshd.log
Environment         : CYGWIN="ntsec"
Process Type        : Own Process
Startup             : Automatic
Dependencies        : tcpip, syslog-ng
Account             : LocalSystem
----------------------^^^^^^^^^^^

Is the last field the same? if not, try re-installing with a "local" user (with
Administrator or PowerUser privileges).
-- 
René Berber


--
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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]