X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Message-ID: <4B50C28E.8050001@cygwin.com> Date: Fri, 15 Jan 2010 14:31:26 -0500 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: Fwd: cygwin 1.7.1 cygrunsrv-sshd - unable to login References: <4B50BF7C DOT 4010900 AT gmail DOT com> In-Reply-To: <4B50BF7C.4010900@gmail.com> 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 On 01/15/2010 02:18 PM, LogicDaemon wrote: > Hi all. > > I am trying to set up ssh server as service in standalone Windows 2003. > Sorry if this already was questioned but I did not find anything related in > near maillist archive. > > After ssh-host-config I'm getting sshd service, which does not accept > any logins (log "-d -d" attached, found nothing helpful there). However if I run > /usr/sbin/sshd from cygwin shell, it starts and I am able to login with both > certificate and keyboard-interactive methods. If I change ssh service login > user to my login then I am able to login also. What may be wrong? > > problem 2: first trials to set up service leaded to starting two > cygrunsrv processes (parent and child) and one sshd. But now I am getting one > cygrunsrv process and one sshd, and parent of sshd is not running. To stop > process, I have to manually kill sshd. I already removed and reinstalled > service and config file, but behavior persists. Forwarding multiple copies of the same message to this list will not gain you any friends on this list. I suggest you look at the email archives for issues with 'sshd' installations. Most of them result from bad configuration, as is the case with yours (*never* run 'sshd' directly from the command line as a user other than the one that runs it as a service). I also recommend two other things: 1. Read the Users Guide for information about switching users. I highly recommend you implement the LSA package option. 2. To quickly recover from the hole you're in, wipe your Cygwin installation and start over, using the configuration scripts (ssh-host-config, ssh-user-config) at your disposal and your new found knowledge from the Users Guide, email archives, and even the README. -- 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? -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple