From owner-freebsd-questions Tue Jan 21 14:38:13 2003 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 95AC137B405 for ; Tue, 21 Jan 2003 14:38:11 -0800 (PST) Received: from chimera.noanet.net (chimera.noanet.net [66.119.192.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id AE54243F3F for ; Tue, 21 Jan 2003 14:38:10 -0800 (PST) (envelope-from mksmith@noanet.net) Received: from noanet.net ([64.146.175.73]) by chimera.noanet.net (8.12.2/8.12.2) with SMTP id h0LMc4tW073242; Tue, 21 Jan 2003 14:38:05 -0800 (PST) Date: Tue, 21 Jan 2003 14:38:33 -0800 Subject: Re: ssh with public keys and no prompts...I can't get it to work! Content-Type: text/plain; delsp=yes; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v551) Cc: questions list To: Bob Willcox From: "Michael K. Smith" In-Reply-To: <20030121220140.GA91874@luke.immure.com> Message-Id: <12966060-2D91-11D7-8983-003065CA9420@noanet.net> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.551) 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 On Tuesday, January 21, 2003, at 02:01 PM, Bob Willcox wrote: > I am trying (in vain so far) to get ssh to allow me to connect using > public keys and without any prompts (I need this for a software > distribuiton/configuration package I need to run). I have had this work > before, but now it seems to escape me. To simplify my testing my client > and server system is the same (i.e., I'm attempting to use ssh to login > to the local system). > > My .ssh subdirectory contents: > > $ ls -la .ssh > total 22 > drwxr-xr-x 2 bobl staff 512 Jan 21 15:28 . > drwxr-xr-x 3 bobl staff 512 Jan 21 14:13 .. > > debug1: PEM_read_PrivateKey failed > debug1: read PEM private key done: type > Enter passphrase for key '/usr/home/bobl/.ssh/id_rsa': > Hello: Did you create your keys with no passwords, as in "ssh-keygen -t dsa" then just hit return a couple of times instead of giving a password? Also, and this probably doesn't change your present situation (but may because some things about ssh are just plain weird), your directory should be rwx for user only, so make sure to chmod go-rx that directory. Mike ------------------------------------------------------------------------ -- Michael K. Smith NoaNet 206.219.7116 (work) 206.579.8360 (cell) mksmith@noanet.net http://www.noanet.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message