From owner-freebsd-questions@FreeBSD.ORG Wed Nov 26 06:40:27 2003 Return-Path: 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 0A84316A4CE for ; Wed, 26 Nov 2003 06:40:27 -0800 (PST) Received: from sccrmhc13.comcast.net (sccrmhc13.comcast.net [204.127.202.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id CD98143FCB for ; Wed, 26 Nov 2003 06:40:23 -0800 (PST) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from be-well.no-ip.com ([66.30.200.37]) by comcast.net (sccrmhc13) with ESMTP id <200311261440230160085cdoe>; Wed, 26 Nov 2003 14:40:23 +0000 Received: by be-well.no-ip.com (Postfix, from userid 1147) id D659F70; Wed, 26 Nov 2003 09:40:22 -0500 (EST) Sender: lowell@be-well.ilk.org To: David.Bear@asu.edu References: <20031125183807.H13943@asu.edu> From: Lowell Gilbert Date: 26 Nov 2003 09:40:22 -0500 In-Reply-To: <20031125183807.H13943@asu.edu> Message-ID: <44llq3jiqx.fsf@be-well.ilk.org> Lines: 28 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii cc: freebsd-questions@freebsd.org Subject: Re: ssh issue X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Nov 2003 14:40:27 -0000 David Bear writes: > running 4.7-RELEASE.. I'm trying to setup ssh pubkey auth and its not > working.. > > I put my pub key in ~/.ssh/authorized_keys from system A > > On system B edited /etc/ssh/sshd_config with > ====================== > PubkeyAuthentication yes > AuthorizedKeysFile .ssh/authorized_keys > PasswordAuthentication no > ===================== > > I chmod'd my .ssh dir as 700 on system A and B. Then restart sshd on > system B explicitly using -f /etc/ssh/sshd_config . > > the ssh'ing into system B I'm still prompted for a password. You have a public/private key pair on system A. You will be using that pair to log in to system B. B needs to have the key in its authorized_keys file. It sounds like you actually did that on A. If I'm misunderstanding, then maybe you can post a bit more detail to make things clear. But more likely, you'll get the answer just by running ssh with more verbosity (-v options). Good luck.