Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Tue, 12 Oct 2004 11:05:54 +0200 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: SSH Rsa key weirdness. Message-ID: <20041012090554.GV6702@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <2380 DOT 68 DOT 58 DOT 97 DOT 169 DOT 1097556410 DOT squirrel AT urbanservers DOT com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2380.68.58.97.169.1097556410.squirrel@urbanservers.com> User-Agent: Mutt/1.4.2i On Oct 11 23:46, admin AT urbanservers DOT com wrote: > I am attempting to use RSA keys to connect to a user, from a remote box. > > RSA keys are created on my main machine instead of the cygwin machine. > Normally I copy them over and change permissions, authorized_keys, auth > against the .pub and it works. > > If I copy my authorized_keys file over and change permissions it fails to > auth with the .pub. WFM. I'm doing the same over and over again. There's just one problem on Cygwin which you don't have on Linux. The authorized_keys file must be readable by SYSTEM, resp. by the user running the sshd service (sshd_server on 2K3 if you installed via ssh-host-config). You can add read perms for SYSTEM (or sshd_server) e. g. by calling setfacl -m u:SYSTEM:r-- ~/.ssh/authorized_keys > If i run: > ssh-user-config ssh-user-config does exactly that, adding read permission for SYSTEM or sshd_server. That's probably the reason it works ;-) > CYGWIN makes Windows work a lot easier for Linux guys like me :) Cool! Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- 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/