From owner-freebsd-questions Mon Jul 29 0:15: 7 2002 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 84B8B37B400 for ; Mon, 29 Jul 2002 00:15:04 -0700 (PDT) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id A72AD43E42 for ; Mon, 29 Jul 2002 00:15:03 -0700 (PDT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk ([IPv6:::1]) by smtp.infracaninophile.co.uk (8.12.5/8.12.5) with ESMTP id g6T7F2dG027184; Mon, 29 Jul 2002 08:15:02 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost) by happy-idiot-talk.infracaninophile.co.uk (8.12.5/8.12.5/Submit) id g6T7EvsO027183; Mon, 29 Jul 2002 08:14:57 +0100 (BST) Date: Mon, 29 Jul 2002 08:14:57 +0100 From: Matthew Seaman To: fred@timogen.com Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Why my no-password authentication does not work Message-ID: <20020729071457.GA27144@happy-idiot-talk.infracaninophi> References: <012a01c23739$e64cc690$7d05a8c0@fred> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <012a01c23739$e64cc690$7d05a8c0@fred> User-Agent: Mutt/1.5.1i 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 Mon, Jul 29, 2002 at 12:55:20PM -0700, fred@timogen.com wrote: > I follow the following steps to set up two linux machines connected > with non-password authentication, why is it not work? What does this have to do with FreeBSD? > The non-password authentication is done with keys. And it's done like this. > > a.. Run ssh-keygen on the source machine. Accept the default > values for all questions. Be sure to supply an empty passphrase. > This will create two files under .ssh in your home directory. These > files are ~/.ssh/identity and ~/.ssh/identity.pub. The first file > should not be revealed to anyone. The second file is public and > contains your public key. > b.. Copy the contents of ~/.ssh/identity.pub to the destination > machine and place it within ~/.ssh/authorized_keys. Be sure to name > the file correctly. Use 'ssh -v -v -v' to trace what's going on. Taking an educated guess, identity.pub is a RSA1 key, which only works with SSHv1. Unless you're using a truely ancient version of ssh, it's going to prefer using SSHv2, which means that you should setup RSA or DSA identity keys. Matthew -- Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way Tel: +44 1628 476614 Marlow Fax: +44 0870 0522645 Bucks., SL7 1TH UK To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message