From owner-freebsd-questions Tue Oct 15 12: 1:48 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 39C9837B401 for ; Tue, 15 Oct 2002 12:01:47 -0700 (PDT) Received: from aberlour1.sirsi.com (aberlour.sirsi.com [150.147.64.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id BB34E43E6E for ; Tue, 15 Oct 2002 12:01:46 -0700 (PDT) (envelope-from erics@sirsi.com) Received: from stlmail.dra.com (stlmail.dra.com [192.65.218.119]) by aberlour1.sirsi.com (8.12.1/8.12.1) with ESMTP id g9FFkaoN015698 for ; Tue, 15 Oct 2002 10:46:36 -0500 (CDT) Received: by stlmail.dra.com with Internet Mail Service (5.5.2656.59) id <444FFA2Y>; Tue, 15 Oct 2002 10:59:35 -0500 Message-ID: From: Eric Six To: questions@FreeBSD.ORG Subject: SSH and public key authentication.. Date: Tue, 15 Oct 2002 10:59:34 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2656.59) Content-Type: text/plain; charset="iso-8859-1" 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 Hi all.. I am trying to use public key authentication between a freebsd 4.6 box and a sun box. I have numerous other sun boxes doing publickey authentication, mainly for scp scripts. I have setup the bsd box so it is configured the same. I have generated the keys and copyied the id_dsa.pub to the sun server and placed it in the authorized_keys file. However, everytime I invoke scp or ssh on the bsd box, it is forcing password authentication. Output with -v -v; debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Rhosts Authentication disabled, originating port will not be trusted. debug1: restore_uid debug1: ssh_connect: getuid 1001 geteuid 1001 anon 1 debug1: Connecting to filestore [10.203.60.137] port 22. debug1: temporarily_use_uid: 1001/1001 (e=1001) debug1: restore_uid debug1: temporarily_use_uid: 1001/1001 (e=1001) debug1: restore_uid debug1: Connection established. debug3: No RSA1 key file /home/esix/.ssh/id_dsa.pub. debug1: identity file /home/esix/.ssh/id_dsa.pub type 2 debug1: Remote protocol version 1.99, remote software version OpenSSH_3.0.2p1 debug1: match: OpenSSH_3.0.2p1 pat ^OpenSSH debug1: Local version string SSH-1.5-OpenSSH_2.9 FreeBSD localisations 20011202 debug1: Waiting for server public key. debug1: Received server public key (768 bits) and host key (1024 bits). debug3: check_host_in_hostfile: filename /home/esix/.ssh/known_hosts debug3: check_host_in_hostfile: match line 1 debug1: Host 'filestore' is known and matches the RSA1 host key. debug1: Found key in /home/esix/.ssh/known_hosts:1 debug1: Encryption type: 3des debug1: Sent encrypted session key. debug1: Installing crc compensation attack detector. debug1: Received encrypted confirmation. debug1: Doing password authentication. If I do the same on the sun boxes, I see it's authenticating via publickey,password,interactive. What will get ssh on fbsd to do this? TIA Eric To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message