From owner-freebsd-questions Sat May 11 16: 9:52 2002 Delivered-To: freebsd-questions@freebsd.org Received: from pen.homeip.net (72-17-237-24-cable.juneau.ak.net [24.237.17.72]) by hub.freebsd.org (Postfix) with ESMTP id A098337B408 for ; Sat, 11 May 2002 16:09:48 -0700 (PDT) Received: from localhost (localhost [[UNIX: localhost]]) by pen.homeip.net (8.11.6/8.11.6/SuSE Linux 0.5) id g4BN9ic10906; Sat, 11 May 2002 15:09:44 -0800 Message-Id: <200205112309.g4BN9ic10906@pen.homeip.net> Content-Type: text/plain; charset="iso-8859-1" From: John Andersen Reply-To: jsa@pen.homeip.net To: Darren Pilgrim Subject: Re: How do I get SSH to not ask for my password? Date: Sat, 11 May 2002 15:09:44 -0800 X-Mailer: KMail [version 1.3.2] Cc: freebsd-questions@FreeBSD.ORG References: <3CDD9588.96ED7F2D@pantherdragon.org> <20020512103752.A29162@grimoire.chen.org.nz> In-Reply-To: <20020512103752.A29162@grimoire.chen.org.nz> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Saturday 11 May 2002 02:37 pm, Jonathan Chen wrote: > On Sat, May 11, 2002 at 03:04:56PM -0700, Darren Pilgrim wrote: > > The other day I saw a machine with SSH set up in such a way that it > > didn't ask for a password, even though there was a password on the shell > > account the user was connecting to. How is this done? > > On the local machine, generate a "identity" and "identity.pub" file using > ssh-keygen. (You don't need to do this if you already have it.) Put the > contents of "identity.pub" into the remote machine's > ~/.ssh/authorized_hosts file. Its more complex than that. You also have to copy the identity to the client machine, and reference this file when you ssh into the server. Its very touchy about permissions, especially on the server, but also on the client. man ssh-keygen -- _________________________________________________ No I Don't Yahoo! And I'm getting pretty sick of being asked if I do. _________________________________________________ John Andersen / Juneau Alaska To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message