www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/06/05/12:57:33

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <4A294D8C.7070904@cygwin.com>
Date: Fri, 05 Jun 2009 12:53:32 -0400
From: "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com>
Reply-To: cygwin AT cygwin DOT com
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.21) Gecko/20090320 Remi/2.0.0.21-1.fc8.remi Lightning/0.9 Thunderbird/2.0.0.21 Mnenhy/0.7.5.0
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: Cygwin SSH Multiple Users
References: <6CC1F30947381149A9DA2FA21F51A6D83EC7982A AT WW001E1ERLMM21 DOT ww001 DOT siemens DOT net> <B7DBD9CB-DD24-45F0-810F-F667D9025C8C AT bitmover DOT com> <6CC1F30947381149A9DA2FA21F51A6D83EC799DB AT WW001E1ERLMM21 DOT ww001 DOT siemens DOT net> <E77814B3-F9DE-4734-BBA0-6C7ADCB875DC AT bitmover DOT com> <20090603155242 DOT GC22513 AT calimero DOT vinschen DOT de> <6CC1F30947381149A9DA2FA21F51A6D83ECB4C60 AT WW001E1ERLMM21 DOT ww001 DOT siemens DOT net> <f4d6f44b0906050018ie950e46ya7dc3dde691755a AT mail DOT gmail DOT com>
In-Reply-To: <f4d6f44b0906050018ie950e46ya7dc3dde691755a@mail.gmail.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.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

<http://cygwin.com/acronyms/#TOFU>.  Reformatted.

Huang Bambo wrote:
> 2009/6/5 Holikar, Sachin (ext) <sachin <dot> holikar <dot> ext <AT> siemens <dot> com>:
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^->
<http://cygwin.com/acronyms/#PCYMTNQREAIYR>
Thanks.

>>
>> Hello,
>>
>> We reinstalled WINXP and CYGWIN with another dumps. But still not able
>> to  start the sshd service. Really frustrated as we followed exact steps given
>> in most of the internet help pages. So whats going wrong , is there any way
>> to find out what more is needed or so? Where can we have the sshd logs.
>> One file we found is /var/log/sshd.log ...But its empty.......
>> Please suggest.
 > use command
 > /usr/sbin/sshd
 > to try start first

This seems to be a favorite thing to suggest/try lately.  I suppose
because it's a common debugging option on most Unix/Linux distributions.
But on Cygwin, just suggesting the above and leaving the rest to the
otherwise uninitiated is like helping someone out of a hole by handing
them a shovel and telling them too dig.  If you ever plan to run 'sshd'
as a service (as configuring using 'ssh-host-config' will do for you),
this will only work if you do the above as the user that will run the
service.  On XP, that's SYSTEM.  So you need to start a SYSTEM-owned
shell using AT before the above isn't just a recipe for more headaches.
See the email archives for details if you're not sure how to start a
SYSTEM-owned shell.  Or just stop and ask yourself why you need to know
how to do this (beyond intellectual curiousity of course! ;-) )  And of
course if you're starting 'sshd' using any configuration other than
the 'ssh-host-config' script, then you should really know what you're
doing, as I outlined in my response from yesterday:

<http://cygwin.com/ml/cygwin/2009-06/msg00175.html>

Since the OP is having difficulties with 'sshd' on Cygwin and is asking
for help here, I would surmise that he falls into the category of
the uninitiated in this instance.  So, my recommendations are to:

   1. Look at 'ssh-host-config' and note all the directories that it
      does "chown" on.
   2. Run 'ssh-host-config' to configure 'sshd'.  Take the defaults unless
      you have a very good reason not to.
   3. Check after the script completes that the ownerships of the directories
      found in (1) above are as 'ssh-host-config' set them.  On XP systems,
      the "$(run_service_as}" user is SYSTEM.

Following random guides found on the Internet to configure Cygwin's 'sshd'
is not supported by this list.  Reading the openssh readme in
'/usr/share/doc/Cygwin' is only supported documentation.  If you prefer to
use another source for your configuration information, please avail yourself
of any support/help from the site where you got this information.

-- 
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
 > Q: Are you sure?
 >> A: Because it reverses the logical flow of conversation.
 >>> Q: Why is top posting annoying in email?

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