From owner-freebsd-questions@FreeBSD.ORG Thu Aug 30 17:16:44 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C39DD16A418 for ; Thu, 30 Aug 2007 17:16:44 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from mxout7.cac.washington.edu (mxout7.cac.washington.edu [140.142.32.178]) by mx1.freebsd.org (Postfix) with ESMTP id 5DE8F13C468 for ; Thu, 30 Aug 2007 17:16:44 +0000 (UTC) (envelope-from youshi10@u.washington.edu) Received: from hymn08.u.washington.edu (hymn08.u.washington.edu [140.142.13.238]) by mxout7.cac.washington.edu (8.13.7+UW06.06/8.13.7+UW07.06) with ESMTP id l7UHGEGh021943 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 30 Aug 2007 10:16:14 -0700 Received: from localhost (localhost [127.0.0.1]) by hymn08.u.washington.edu (8.13.7+UW06.06/8.13.7+UW07.03) with ESMTP id l7UHGE6b007780 for ; Thu, 30 Aug 2007 10:16:14 -0700 X-Auth-Received: from [192.55.52.2] by hymn08.u.washington.edu via HTTP; Thu, 30 Aug 2007 10:16:14 PDT Date: Thu, 30 Aug 2007 10:16:14 -0700 (PDT) From: youshi10@u.washington.edu To: freebsd-questions@freebsd.org In-Reply-To: <46D6F8D8.7000901@crackmonkey.us> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-PMX-Version: 5.3.3.310218, Antispam-Engine: 2.5.1.298604, Antispam-Data: 2007.8.30.95323 X-Uwash-Spam: Gauge=IIIIIII, Probability=7%, Report='NO_REAL_NAME 0, __CT 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __SANE_MSGID 0' Subject: Re: ssh2 login with public key - not working X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Aug 2007 17:16:44 -0000 On Thu, 30 Aug 2007, Adam J Richardson wrote: > Laszlo Nagy wrote: >> Well, I have other users using public keys for logging in so the sshd config >> must be correct. >> This is the only user that doesn't work. I can login by typing in the >> password but I need to login automatically. >> >> Best, >> >> Laszlo > > Well, then perhaps the user is wrongly configured. IIRC, you need to have the > file ~/.ssh/authorized_users with your public key in it, so sshd can match it > to the private key when you log in. > > If the file's there on the server, perhaps the client end is misconfigured. > Apparently there's no way to feed the key to SSH via command line, you have to > be using some sort of key agent. Which is highly annoying IMO, but then you can > always use PuTTY instead of ssh. > > HtH, > Adam J Richardson Try using ssh -vv to root-cause the issue. ssh's pretty good about telling you what's wrong with a config. -Garrett