Hi all,
i have generated a pair of keys so that i can login via SSH without entering my password.
I am using putty to login. After putting the public key on the server,then logging through putty, i get the message "Server refused our key" on screen. At the same time, /var/log/secure is showing "Authentication refused: bad ownership or modes for file /home/user/.ssh/authorized_keys".
Any advise? The permission for the directory /user is "drwx------". The permission for .ssh is "drwxrwxr-x". The permission for the file authorized_keys is "-rw-rw-r--"
What am i missing out? Do i have to configure SSH to allow log in using keys?