I'm connecting to a remote server as tom
who (obviously) exists on the remote server but not the local server.
I copied the id_rsa.pub
key generated for local user bob
onto tom's authorized_keys
file on the remote server. However, I'm still being prompted for the password.
[bob@localserver ~]$ ssh tom@remoteserver
EDIT 1
Just for completeness I also regenerated the the key and copying it to the remote server.
ssh-keygen -t rsa
ssh-copy-id -i tom@REMOTESERVER
See debug output here: ssh debug details
I noticed the following in the debug output. This is present for every line (base64 block?) in my id_rsa
private key file:
debug3: key_read: missing whitespace
EDIT 2:
Remote server's permissions:
drwx------ 2 tom tom 4096 Aug 15 10:59 .
drwx------ 5 tom tom 4096 Aug 15 11:54 ..
-rw-rw-r-- 1 tom tom 810 Aug 15 10:59 authorized_keys
-rwx------ 1 tom tom 109 Aug 14 09:43 config
-rw------- 1 tom tom 1675 Aug 8 14:58 id_rsa
-rw-r--r-- 1 tom tom 404 Aug 8 14:58 id_rsa.pub
-rw-r--r-- 1 tom tom 1217 Aug 10 09:32 known_hosts
Local server's permissions:
drwx------ 2 bob bob 4096 Aug 15 11:32 .
drwx------ 7 bob bob 4096 Aug 15 11:32 ..
-rw------- 1 bob bob 1613 Aug 15 11:09 id_rsa
-rw------- 1 bob bob 1675 Aug 15 11:08 id_rsa.bkp
-rw-r--r-- 1 bob bob 405 Aug 15 10:58 id_rsa.pub
-rw-r--r-- 1 bob bob 410 Aug 15 10:59 known_hosts
ssh -vvv tom@remoteserver
. – garethTheRed Aug 14 '14 at 5:49ls -la ~/.ssh
on the server. – michas Aug 15 '14 at 12:40