From owner-freebsd-questions Sat May 11 15:38: 5 2002 Delivered-To: freebsd-questions@freebsd.org Received: from chen.org.nz (chen.org.nz [210.54.19.51]) by hub.freebsd.org (Postfix) with ESMTP id AEC9A37B406 for ; Sat, 11 May 2002 15:37:59 -0700 (PDT) Received: from grimoire.chen.org.nz (localhost [127.0.0.1]) by chen.org.nz (8.12.3/8.12.3) with ESMTP id g4BMbrf0029206; Sun, 12 May 2002 10:37:53 +1200 (NZST) (envelope-from jonc@grimoire.chen.org.nz) Received: (from jonc@localhost) by grimoire.chen.org.nz (8.12.3/8.12.3/Submit) id g4BMbqL6029205; Sun, 12 May 2002 10:37:52 +1200 (NZST) Date: Sun, 12 May 2002 10:37:52 +1200 From: Jonathan Chen To: Darren Pilgrim Cc: freebsd-questions@FreeBSD.ORG Subject: Re: How do I get SSH to not ask for my password? Message-ID: <20020512103752.A29162@grimoire.chen.org.nz> References: <3CDD9588.96ED7F2D@pantherdragon.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3CDD9588.96ED7F2D@pantherdragon.org>; from dmp@pantherdragon.org on Sat, May 11, 2002 at 03:04:56PM -0700 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 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. -- Jonathan Chen ---------------------------------------------------------------------- "Nyuck, nyuck, nyuck" - Curly To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message