From owner-freebsd-questions Sat Mar 18 13:49:36 2000 Delivered-To: freebsd-questions@freebsd.org Received: from mail2.x-treme.gr (mail2.x-treme.gr [212.120.196.24]) by hub.freebsd.org (Postfix) with ESMTP id A7B0437B536 for ; Sat, 18 Mar 2000 13:49:30 -0800 (PST) (envelope-from keramida@ceid.upatras.gr) Received: from hades.hell.gr (pat7.x-treme.gr [212.120.197.199]) by mail2.x-treme.gr (8.9.3/8.9.3/IPNG-ADV-ANTISPAM-0.1) with ESMTP id XAA27922; Sat, 18 Mar 2000 23:48:37 +0200 Received: (from charon@localhost) by hades.hell.gr (8.9.3/8.9.3) id XAA20803; Sat, 18 Mar 2000 23:27:16 +0200 (EET) (envelope-from keramida@ceid.upatras.gr) Date: Sat, 18 Mar 2000 23:27:16 +0200 From: Giorgos Keramidas To: Sam Carleton Cc: FreeBSD Questions Subject: Re: HELP!!! using RSA w/o passwords? Message-ID: <20000318232716.B20206@hades.hell.gr> Reply-To: keramida@ceid.upatras.gr References: <38D02E15.56AEE21@miltonstreet.com> <20000316145759.B6500@hades.hell.gr> <38D1B914.985F71CC@miltonstreet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <38D1B914.985F71CC@miltonstreet.com>; from scarleton@miltonstreet.com on Thu, Mar 16, 2000 at 11:49:25PM -0500 X-PGP-Fingerprint: 62 45 D1 C9 26 F9 95 06 D6 21 2A C8 8C 16 C0 8E Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thu, Mar 16, 2000 at 11:49:25PM -0500, Sam Carleton wrote: > Giorgos Keramidas wrote: > > > A second, and also important thing is to create with ssh-keygen > > an RSA key that doesn't have a password. Then copy the public > > key (usually found as the file ~/.ssh/identity.pub in ssh1 > > installations) to the ~/.ssh/authorized_keys file in the remote > > machine, and you're done. > > I am simply not getting something, I don't know what. I still need to > enter a password. Ok I am trying to ssh into machine linuxbox from > machine freebsd. I am using ssh2, not ssh. I have created RSA keys > for root on both linuxbox and freebsd, neither has a password. I did > this: > > # cat freebsd_identity.pub >> ~/.ssh2/authorized_keys This will _append_ the key to your authorized_keys. I hope you don't have a hostkey that matches the machine name higher in the file, which would cause the RSA authentication to fail and fall back to password authentication. Try editing the authorized keys file with your favorite editor and remove all the host keys for the same host. Then, you can append the key and see if it still doesn't work. - Giorgos Keramidas To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message