SSH Guru

How can I enable RSA authentication only(disable 
PasswordAuthentication)?  I tried couple times and still no luck.  This is
how I did:

1>disable PasswordAuthentication on server(set PasswordAuthentication to
no in $SSH/etc/sshd_config file on server and $SSH/etc/ssh_config on
client).

2>generate id_dsa/id_dsa.pub and identity/identity.pub on both server and
client, then I copied id_dsa.pub and identity.pub on client into server
and rename file to authorized_keys2 for id_dsa.pub and identity.pub for
authorized_keys(the files are located in $HOME/.ssh directory where $HOME
is the userid we want to login on server end).

But I still get rejected:

ssh ridcust2 -l sysadm
Enter passphrase for DSA key '/home1/users/sysadm/.ssh/id_dsa': 
Permission denied (publickey,password).

Thanx for any reply.
JC

Reply via email to