delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/02/16/22:35:51

X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT org>
Subject: Re: problem installing cygwin+sshd
Date: Fri, 16 Feb 2007 21:35:04 -0600
Lines: 60
Message-ID: <er5t5e$c7a$1@sea.gmane.org>
References: <4750-32499 AT sneakemail DOT com>
Mime-Version: 1.0
User-Agent: Thunderbird 1.5.0.9 (Windows/20061207)
In-Reply-To: <4750-32499@sneakemail.com>
OpenPGP: url=hkp://random.sks.keyserver.penguin.de
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

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=3D"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).
--=20
Ren=E9 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019