delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/01/02/14:31:24

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
Reply-To: Cygwin List <cygwin AT cygwin DOT com>
Message-Id: <6.2.0.14.0.20050102141849.04e99e08@pop.prospeed.net>
Date: Sun, 02 Jan 2005 14:25:49 -0500
To: "pedal2metal" <pedal2metal AT sbcglobal DOT net>, <cygwin AT cygwin DOT com>
From: Larry Hall <lh-no-personal-replies-please AT cygwin DOT com>
Subject: RE: sshd under Cygwin
In-Reply-To: <DEEFKLGCAACCNNEOEAGCOEAACAAA.pedal2metal@sbcglobal.net>
References: <DEEFKLGCAACCNNEOEAGCKEAACAAA DOT pedal2metal AT sbcglobal DOT net> <DEEFKLGCAACCNNEOEAGCOEAACAAA DOT pedal2metal AT sbcglobal DOT net>
Mime-Version: 1.0

At 07:44 AM 1/2/2005, you wrote:
>Hello,
>   After using the following references:
>
>http://ist.uwaterloo.ca/~kscully/SSH/CygwinSSHD_W2K3.html
>http://sources.redhat.com/ml/cygwin/2001-11/msg00844.html
>/usr/share/doc/Cygwin/openssh.README
>/usr/bin/ssh-host-config
>/usr/bin/ssh-user-config
>
>& plenty of T&E (trial & error),
>I was able to get RSA SSH2 keys to work properly.  In conclusion,
>change the _user to <User Login ID> instead of 'system' in both of the above
>scripts.
>I installed the sshd service manually but that was mainly due to
>the debug/analysis nature of the work.  Shouldn't be necessary if the
>_user variable is changed in both scripts.
>
>Anyhow, this does bring up another question:
>   How would one get RSA SSH2 keys to work with multiple user logins
>since the cygrunsrv/sshd process can only run as 1 user?  It would
>appear the answer is "Not possible" based on my T&E results.


If you want to be able to use multiple user's with sshd, then you must start
the service as 'SYSTEM' (or 'sshd_server' for W2K3).  There's no need to 
edit any scripts as you suggest above to get this working.  My WAG is that
you started 'sshd' from the command line once as the user you were logged
in as.  This will create files like '/var/log/sshd.log' with permissions 
for your user as the owner, which won't work if you then try to start the 
'sshd' as 'SYSTEM'.


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


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