I am new to OpenSSH. I run RH7.3 and OpenSSH 3.1p1 in both server and
client. sshd and ssh uses the default setting in RH7.3 for OpenSSH in
both server and client.
My set up is as follow:
1. generate user key in both client and server using: ssh-keygen -b 1024
2. copy the public keys to "authorized_keys2" file from client to server
and vice versa.
3. try connecting. But I cannot use the RSA key to do authentication.
I can only use the Unix password of the account in the server.
When I look at /var/log/secure, it shows:
Jul 11 00:24:53 talent sshd: Could not reverse map address
Jul 11 00:24:53 talent sshd: Authentication refused: bad
ownership or modes for file /home/bill/.ssh/authorized_keys2
Jul 11 00:24:56 talent sshd: Accepted password for bill from
192.168.0.1 port 32776 ssh2
The authorized_keys2 file's ownership is the user itself. Modes are 664.
What should I do to enable RSA authenication?
Thanks for your help.
Computer engineering student, University of Hong Kong