From owner-freebsd-questions@FreeBSD.ORG Thu Feb 2 00:33:12 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 165D016A420 for ; Thu, 2 Feb 2006 00:33:12 +0000 (GMT) (envelope-from davidbryce@fastmail.fm) Received: from out4.smtp.messagingengine.com (out4.smtp.messagingengine.com [66.111.4.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8E2A243D48 for ; Thu, 2 Feb 2006 00:33:11 +0000 (GMT) (envelope-from davidbryce@fastmail.fm) Received: from frontend1.internal (mysql-sessions.internal [10.202.2.149]) by frontend1.messagingengine.com (Postfix) with ESMTP id 0A992D30C31; Wed, 1 Feb 2006 19:33:10 -0500 (EST) Received: from web2.messagingengine.com ([10.202.2.211]) by frontend1.internal (MEProxy); Wed, 01 Feb 2006 19:33:10 -0500 Received: by web2.messagingengine.com (Postfix, from userid 99) id 9D1A710838; Wed, 1 Feb 2006 19:33:00 -0500 (EST) Message-Id: <1138840380.6221.253333657@webmail.messagingengine.com> X-Sasl-Enc: YNWDIyDYP8lwf6Xgr4ghjcGoANA6HzE4HTdkJm2ryBYc 1138840380 From: "david bryce" To: "Daniel A." Content-Disposition: inline Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="ISO-8859-1" MIME-Version: 1.0 X-Mailer: MIME::Lite 5022 (F2.73; T1.15; A1.64; B3.05; Q3.03) References: <1138676399.30955.253148220@webmail.messagingengine.com> <20060131094135.GA2042@flame.pc> <1138836616.370.253326484@webmail.messagingengine.com> <5ceb5d550602011604p45bf08dfx21e972f44736f879@mail.gmail.com> In-Reply-To: <5ceb5d550602011604p45bf08dfx21e972f44736f879@mail.gmail.com> Date: Thu, 02 Feb 2006 11:33:00 +1100 Cc: freebsd-questions@freebsd.org Subject: Re: SSH with Public Key Authentication (Was: Re: Attention: Giorgos Keramidas (Was: CVS Import Permissions)) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Feb 2006 00:33:12 -0000 On Thu, 2 Feb 2006 01:04:19 +0100, "Daniel A." said: > > Thanks again for taking the time to reply. I have tried using SSH in > > the past, and got stuck setting up the public key login (that's > > why we're using pserver). > > > > I spent a few hours yesterday trying to get SSH going again. I can > > login with SSH from the windows machine using Putty, but only when > > I use password authentication. In order to use cvs with ssh (using > > the plink program in Putty), we must use public key authentication. > > > > We are getting a 'Key Refused' error when trying to use public key > > authentication. I have tried doing several things including editing > > the /etc/ssh/sshd_config file: > > Try one or more of the following things: > - Use puttygen to import your private key, and then export as .ppk > - Load your key.ppk into pageant, and let it manage your private key(s) > - Log in using your private key from the server (ie. login to the > server with your password, and then from the shell ssh > username@localhost). > > Please inform me of your results. Daniel, Thank you for taking the time to reply. We are currently using pageant to manage the private key. However, the keys we are using are generated with puttygen (not from the server). The public key was then copied to the authorized_keys file on the server. Would you recommend generating the keys on the server? Do you have an idea where are some instructions about how to generate the keys on the server? Thanks! Regards, DB -- david bryce davidbryce@fastmail.fm -- http://www.fastmail.fm - The way an email service should be