X-Spam-Check-By: sourceware.org
Message-ID: <31389-25452@sneakemail.com>
Date: Sun, 18 Feb 2007 17:49:38 +0100
From: "Michael" <bgn7a3m02@sneakemail.com>
To: cygwin@cygwin.com
Subject: Re: problem installing cygwin+sshd
In-Reply-To: <er9u3d$d74$1@sea.gmane.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <4750-32499@sneakemail.com> <er5t5e$c7a$1@sea.gmane.org> 	 <86772a380702170134r4cd6d72dwd588e8adcbd1daec@mail.gmail.com> 	 <er73an$s0h$1@sea.gmane.org> <er9t87$61v$1@sea.gmane.org> 	 <er9u3d$d74$1@sea.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Thorston:
> Please refrain from sending me private mail...
Sorry, I didn't want to offend you! - when answering, I deleted the
To: value by mistake and reenterd obviously the wrong address ...
>
> > Thorsten
> > > Michael
> > > > [cannot start sshd as a service]
> > > > any ideas - what did I do wrong?
> > >
> > > Check the permissions from /var/log - sshd /has/ to log there. As a last
> > > chance I would try to run sshd manually: "sshd -D -ddd"
> >
> > --cut--
> > $ /usr/sbin/sshd -D -ddd
> > debug2: load_server_config: filename /etc/sshd_config
> > debug2: load_server_config: done config len = 196
> > debug2: parse_server_config: config /etc/sshd_config len 196
> > debug3: /etc/sshd_config:13 setting Port 22
> > debug3: /etc/sshd_config:38 setting StrictModes no
> > debug3: /etc/sshd_config:92 setting UsePrivilegeSeparation yes
> > debug3: /etc/sshd_config:106 setting Subsystem sftp     /usr/sbin/sftp-
> > server
> > debug1: sshd version OpenSSH_4.5p1
> > debug1: private host key: #0 type 0 RSA1
> > debug3: Not a RSA1 key file /etc/ssh_host_rsa_key.
> > debug1: read PEM private key done: type RSA
> > debug1: private host key: #1 type 1 RSA
> > debug3: Not a RSA1 key file /etc/ssh_host_dsa_key.
> > debug1: read PEM private key done: type DSA
> > debug1: private host key: #2 type 2 DSA
> > /var/empty must be owned by root and not group or world-writable.
> > --cut--
> > $ ssh localhost
> > ssh: connect to host localhost port 22: Connection refused
> > --cut--
> >
> > > and "strace  /usr/sbin/sshd -D"
> >
> > see attached file.
> >
> > where do I have to look at in the trace-file?
>
> Nowhere. "/var/empty must be owned by root and not group or world-
> writable" - that's pretty clear, isn't it?!

I've already recognized this message, but as I wanted to chown to
root, I was told that there's no "root"-user in the system...

Now I "chown"ed to myself:root and now it works -> sshd is up for one
connection ("ssh localhost") and ends when closing the connection.

Afterwards I "chown"ed /var/empty/ to SYSTEM:root and again tried to
start sshd as a service, but same error-message as before -> did I
come closer to the solution, now I know, that sshd works from
commandline?

thanks for your assistance
michael

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

