From owner-freebsd-questions@FreeBSD.ORG Fri Nov 28 22:35:21 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 DD93B16A4CE for ; Fri, 28 Nov 2003 22:35:21 -0800 (PST) Received: from gamma.hostbyk.com (gamma.hostbyk.com [205.214.80.64]) by mx1.FreeBSD.org (Postfix) with ESMTP id 06C3C43FDF for ; Fri, 28 Nov 2003 22:35:21 -0800 (PST) (envelope-from jmhowell@gamma.hostbyk.com) Received: from jmhowell by gamma.hostbyk.com with local (Exim 4.24) id 1APyhO-0002i1-6u for freebsd-questions@freebsd.org; Fri, 28 Nov 2003 23:35:22 -0700 Date: Fri, 28 Nov 2003 23:35:22 -0700 From: "Jerry M. Howell II" To: freebsd-questions@freebsd.org Message-ID: <20031128233522.A6417@jmhowell.com> References: <20031125183807.H13943@asu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20031125183807.H13943@asu.edu>; from David.Bear@asu.edu on Tue, Nov 25, 2003 at 06:38:07PM -0700 X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gamma.hostbyk.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [32003 32060] / [47 12] X-AntiAbuse: Sender Address Domain - gamma.hostbyk.com Subject: Re: ssh issue X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Nov 2003 06:35:22 -0000 On Tue, Nov 25, 2003 at 06:38:07PM -0700, David Bear wrote: > 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. > > I'm lost. Any advice. There are 2 ways I know to do this and the following URL shows you haw to do both. BTW, if the remote server disallows passwordless logins it doesn't mater how hard you try. http://www-uxsup.csx.cam.ac.uk/pwf-linux/intro/remote.passwordless.html sure it's focused on linux but it'll work just the same on freeBSD -- Jerry M. Howell II