From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26120 invoked by alias); 18 Jul 2005 04:23:56 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 26100 invoked by uid 22791); 18 Jul 2005 04:23:49 -0000 Received: from simon.cs.cornell.edu (HELO simon.cs.cornell.edu) (128.84.154.10) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Mon, 18 Jul 2005 04:23:49 +0000 Received: from sundial.cs.cornell.edu (sundial.cs.cornell.edu [128.84.96.115]) by simon.cs.cornell.edu (8.11.7-20031020/8.11.7/R-3.18) with ESMTP id j6I4Ndu00670 for ; Mon, 18 Jul 2005 00:23:40 -0400 (EDT) Received: from tulare.cs.cornell.edu (IDENT:U2FsdGVkX1/WiB9cL0tPmENTYH2vfv37P/DBafW35IY@tulare.cs.cornell.edu [128.84.97.197]) by sundial.cs.cornell.edu (8.11.7-20031020/8.11.7/M-3.22) with ESMTP id j6I4NdQ00605 for ; Mon, 18 Jul 2005 00:23:39 -0400 (EDT) Received: from tulare.cs.cornell.edu (IDENT:U2FsdGVkX18N/Ybor1qNlIHmpHEGCu7gJR5b+ixvzZ4@localhost.localdomain [127.0.0.1]) by tulare.cs.cornell.edu (8.12.11/8.11.7/L-1.5) with ESMTP id j6I4NdVH032266 for ; Mon, 18 Jul 2005 00:23:39 -0400 Received: (from eli@localhost) by tulare.cs.cornell.edu (8.12.11/8.12.11/Submit) id j6I4Nc1W032262; Mon, 18 Jul 2005 00:23:38 -0400 From: Eli Barzilay MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17115.11978.668163.72702@tulare.cs.cornell.edu> Date: Mon, 18 Jul 2005 04:23:00 -0000 To: Cygwin List Subject: Re: ssh problems In-Reply-To: <6.2.1.2.0.20050717223532.05671008@pop.prospeed.net> References: <17099.10669.464228.125667@tulare.cs.cornell.edu> <6.2.1.2.0.20050705221013.08cdd6b0@pop.prospeed.net> <17099.18679.819770.637448@tulare.cs.cornell.edu> <200507091454.38902.lhall@rfk.com> <17105.47620.419723.654228@tulare.cs.cornell.edu> <6.2.1.2.0.20050710223821.03cd7140@127.0.0.1> <17106.15844.889622.893399@tulare.cs.cornell.edu> <17114.65208.516047.93257@tulare.cs.cornell.edu> <6.2.1.2.0.20050717223532.05671008@pop.prospeed.net> X-SW-Source: 2005-07/txt/msg00823.txt.bz2 On Jul 17, Larry Hall wrote: > At 08:58 PM 7/17/2005, Eli wrote: > > > >When I try that (after shutting down the existing sshd with > >cygrunsrv -E) I get errors when trying to access private key files > >in /etc. How do I make them accessible to my user? Maybe there is > >some simple way to make it so that sshd always runs as me instead > >of the system thing? I don't mind making it a one person service > >since this is used only by my script for our nighly builds (and at > >this point I'll go with anything that works...). > > OK. So try this: > > cygrunsrv --stop sshd > cygrunsrv --remove sshd > cygrunsrv -I sshd -d "CYGWIN sshd" -p /usr/sbin/sshd -a -D -u eli -w "" -e "CYGWIN=tty notraverse" > > is the password you use for user 'eli'. Is it saving the password in a not-too-obvious way? > [...] > You'll need to change some permissions. Try this: > > chown eli /etc/ssh* > chown eli /var/log/sshd.log > > Then start the service: > > cygrunsrv --start sshd > > With any luck, that will run. Note - I haven't tried this myself > but it should be a pretty complete guide. You'll be the final judge > (and test) though. ;-) I followed all this, and ended up with: $ cygrunsrv --start sshd cygrunsrv: Error starting a service: StartService: Win32 error 1069: The service did not start due to a logon failure. Following the advice at http://sources.redhat.com/ml/cygwin/2001-05/msg00909.html I added my username to "Local Security Settings/User Rights Assignment/Log on as a service". After that I got a $ cygrunsrv --start sshd cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1053: The service did not respond to the start or control request in a timely fashion. and now I can't even stop or remove it -- in both cases I get $ cygrunsrv --remove sshd cygrunsrv: Error removing a service: ControlService: Win32 error 1061: The service cannot accept control messages at this time. > Actually, the strong preference is that you *attach* this > information, not append it. (The "attach it as a straight text file" is confusing -- sounds like a textual attachement, which is identical in some mailers to appending the text.) > You are apparently setting CYGWIN in your local user environment. > You'd want to set in it you system environment or use the method I > showed above to set it for just this service. I did do it in the "system variables" part of the environment dialog... -- ((lambda (x) (x x)) (lambda (x) (x x))) Eli Barzilay: http://www.barzilay.org/ Maze is Life! -- 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/