>I'm kind of confused as to why I can't force my two Linux boxes to only
>use PubkeyAuthentication . I have placed "PubkeyAuthentication yes" in
>sshd_config and turned off "PasswordAuthentication no" but know matter
>what I try the system I am attempting to connect to always asks for a
>password. All .pub keys are either 644 with others 600
>I have also created an "Authorized_keys2" and appended it with
>""id_rsa.pub".
>
>The keys where made by "ssh-keygen -d -t rsa"
>I then moved the id_rsa.pub to the server, appended authorized_keys2,
>restarted the server, but I'm still asked for a password.
>
>Does anyone have any suggestion ?

Is there a reason you didn't want to use dsa keys?  I have DSA keys running 
fine using OpenSSH2.9p1-1 on RedHat 6.2 and 7.0.

On the client side: from /home/username/.ssh, I ran ssh-keygen -t dsa
On the host side: I appended the contents of the client's id_dsa.pub to 
/home/username/.ssh/authorized_keys2

I noticed Pascal B. had a problem wherein he had to force protocol 2 as the 
default.  I haven't had that problem, but I don't know what version of 
OpenSSH he's running.

--Brian Collins

Reply via email to