I've got two Pis. I've set up keys for a user (Tom) on Pi 1, and given the public key to a user (Dick) on Pi 2. Dick can now ssh to Pi 1 as Tom without needing a password. (so far so good).
As another user (Harry) on Pi 2, I've ssh'd to Tom on Pi 1 (using Tom's password), and copied Tom's public key back to Harry's $HOME/.ssh directory on Pi 2. But when Harry tries to ssh to Pi 1 as Tom, he is prompted for a password. Dick and Harry both appear to have the same file permissions. Both are only in their own groups. What am I doing wrong ?
ls -ld from $HOME/.ssh gives permissions of drwxr-xr-x ls -l authorized_keys give -r--------
Adrian