delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/09/11/18:21:04

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
To: cygwin AT cygwin DOT com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <rberber AT prodigy DOT net DOT mx>
Subject: Re: sshd install problems | WinXP Pro system
Date: Sun, 11 Sep 2005 17:17:18 -0500
Lines: 71
Message-ID: <dg2adf$p6p$1@sea.gmane.org>
References: <6 DOT 2 DOT 3 DOT 4 DOT 2 DOT 20050910165424 DOT 021e07d0 AT postoffice6 DOT mail DOT cornell DOT edu> <1n6sbhsmwx7w5$.hfhczdqig0oy DOT dlg AT 40tude DOT net> <6 DOT 2 DOT 3 DOT 4 DOT 2 DOT 20050911122244 DOT 021db900 AT incoming DOT verizon DOT net> <dg1n78$7ub$1 AT sea DOT gmane DOT org> <6 DOT 2 DOT 3 DOT 4 DOT 2 DOT 20050911155815 DOT 021d6080 AT incoming DOT verizon DOT net>
Mime-Version: 1.0
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
In-Reply-To: <6.2.3.4.2.20050911155815.021d6080@incoming.verizon.net>
OpenPGP: url=ldap://keyserver.pgp.com
X-IsSubscribed: yes

Evan Cooch wrote:
[snip]
> OK - have now gone through said README twice. Somewhat helpful, but
> largely obtuse in places.
>=20
> e.g.,  "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."
>=20
> Meaning, what? You pass -D as an argument when invoking cygrunsrv
> --start sshd? Hmmm...trying that gives the error message that -D is not
> a valid option for sshd - which makes the text in the README hard to
> interpret.

There is an example of what that means in the file cygrunsrv.README which s=
ays:

sshd:
  cygrunsrv --install sshd \
    --path /usr/sbin/sshd \
    --args -D

this is what the script should be doing.

>> Other than that, look at your event log and see if there is any further
>> information about the failed service startup.
>=20
> Nothing...

Nothing?  On a working sshd service I get the start and stop events.

[snip]
> OK - now I know what you're after. I re-downloaded setup.exe, ran it,
> and tried BOTH text, and binmode (i.e., tried it with text mode - then
> after deleting c:\cygwin, tried again with binmode).

Don't try text mode.

[snip]
> Each time when I run ssh-host-config (following a clean install of
> cygwin), it
>=20
> 1. generates the keys
> 2. asks about using privilege separation
>=20
> And thats it - it doesn't ask me for anything else - it doesn't ask if I
> want to create 'sshd' as a local user, or if I want in install as a
> service, or anything after the privilege separation query.
>=20
> When I run ssh-host-config -d (i.e., in debug mode) as suggested, there
> was nothing obvious about why it exited - there were no error messages
> at all. It simply said I was finished.  Is there a log file I should
> look at (and post here) that might help suss out what its not working?

Post the last lines of that debug run, let's see were it ended and we can
probably deduce what went wrong.

> So, I'm wondering if at this point I should manually do what
> ssh-host-config is apparently refusing to do - if this is an option,
> could someone provide the basic steps?

Follow Chris advice, if ssh-host-config fails then post the last lines of t=
he
debug output and lets start again from there.
--=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