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: 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> <6CC1F30947381149A9DA2FA21F51A6D83EC799DB AT WW001E1ERLMM21 DOT ww001 DOT siemens DOT net> <20090603155242 DOT GC22513 AT calimero DOT vinschen DOT de> <6CC1F30947381149A9DA2FA21F51A6D83ECB4C60 AT WW001E1ERLMM21 DOT ww001 DOT siemens DOT net> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com . Reformatted. Huang Bambo wrote: > 2009/6/5 Holikar, Sachin (ext) holikar ext siemens com>: ^^^^^^^^^^^^^^^^^^^^^^^^^-> 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: 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/