SSH keys & Permissions
The most common issue when copying keys manually to hosts are file permissions.
the .ssh directory should be owned by the user, and have permissions 700 or u=rwx (ls -la ~ | grep ssh should give you a: drwx------)
files contained within the .ssh directory should be set as:
id_rsa - 400 or 600
id_rsa.pub - 600
known_hosts - 600 or 640
*late addition (thanks linosaurusroot)
and of course your public key entry in the authorized_keys or authorized_keys2 file (i just hardlink the 2)
with permissions 600.
if your key files (private) are readable/writable by anyone else (including group membership) then openssh will deny the use of the keys.
in future, use the ssh-copyid command to upload the files, it will set the correct permissions for you automatically.
Hope that solves your issue.
Last edited by ph0rty; 11-07-2012 at 11:53 PM.
Reason: addition of details