Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Jan 2003 14:38:33 -0800
From:      "Michael K. Smith" <mksmith@noanet.net>
To:        Bob Willcox <bob@immure.com>
Cc:        questions list <freebsd-questions@FreeBSD.ORG>
Subject:   Re: ssh with public keys and no prompts...I can't get it to work!
Message-ID:  <12966060-2D91-11D7-8983-003065CA9420@noanet.net>
In-Reply-To: <20030121220140.GA91874@luke.immure.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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).
>

<snip>
> 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 ..
>

<snip>
> debug1: PEM_read_PrivateKey failed
> debug1: read PEM private key done: type <unknown>
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?12966060-2D91-11D7-8983-003065CA9420>