Seems you are right. I had discovered the need for 'authorized_keys2'
some time ago, and been using it ever since.
But I just tried moving it to 'authorized_keys' and it appears that is
now accepted for protocol 2 also.
However I just tried:
cd $HOME/.ssh
scp skaro:.ssh/authorized_keys2 .
on a newly installed machine, giving:
2.gentoo:.ssh> ls -l
total 8
-rw-r--r-- 1 digbyt digbyt 1149 Mar 28 09:54 authorized_keys2
-rw-r--r-- 1 digbyt digbyt 838 Mar 18 15:14 known_hosts
And from another host:
[EMAIL PROTECTED]:/home/digbyt> ssh gentoo
Last login: Mon Mar 28 09:55:21 2005 from voyager2.cthulhu.dircon.co.uk
UTF-8 activated!
gentoo:/home2/digbyt>
So it works as expected for me.
Are you sure your access permissions and ownership is correct for your
authorised_keys file? It will be ignored if it is group or world writeable,
or owned by the wrong person. Have you modified the sshd config file
at all (mine is untouched).
Regards,
DigbyT
On Mon, Mar 28, 2005 at 05:25:41AM -0300, Pupeno wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Je Lundo Marto 28 2005 05:01, Digby Tarvin skribis:
> > It doesn't seem to be very well documented, but $HOME/authorized_keys
> > is for protocol 1 RSA (identity.pub) only.
> I don't think that's the case anymore (I remember that, but long ago), in my
> other box (lab) with another user (pupeno), I've did the same I did with
> [EMAIL PROTECTED] (using authorizied_keys) and it worked.
>
> > For protocol 2 DSA, and protocol 2 RSA (id_dsa.pub id_rsa.pub)
> > you need to create a $HOME/authorized_keys2, ie
> > $ cat id_dsa.pub id_rsa.pub >> authorized_keys2
> >
> > It had me digging through the source the first time I tried to
> > install passwordless ssh....
> [EMAIL PROTECTED] .ssh $ cat id_dsa.pub id_rsa.pub >> authorized_keys2
> [EMAIL PROTECTED] .ssh $ ssh [EMAIL PROTECTED]
> Password:
>
> It still doesn't work.
>
> Thank you.
> - --
> Pupeno: [EMAIL PROTECTED] - http://pupeno.com
> Reading Science Fiction ? http://sfreaders.com.ar
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.1 (GNU/Linux)
>
> iD8DBQFCR7+HfW48a9PWGkURAtsyAJ9OTezgmSHmKKg/WvgOLkvzWwzofACcDw5H
> 6iiBcYMHntJFlGs6u8GVnXI=
> =+exw
> -----END PGP SIGNATURE-----
> --
> [email protected] mailing list
--
Digby R. S. Tarvin [EMAIL PROTECTED]
http://www.digbyt.com
--
[email protected] mailing list