Q: Dear all-seeing, all-knowing, and (pretty, pretty please) all-telling Electronic Replicant,
I am trying to create a passwordless public-key SSH connection between two computers in order to automate a task. I’ve copied the public key from id_dsa.pub on the client computer to ~/.ssh/authorized-keys on the server computer. However, it doesn’t seem to work. I get asked my password every time. I have verified that the cryptographic keys match on both computers. I have tried changing the permissions on ~/.ssh and its contents to 0600. That didn’t help. I ensured "PubkeyAuthentication yes" was in my sshd_config file. I must have restarted sshd a dozen times.
I even tried debug mode (ssh -vvv) and saw this:
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug2: we did not send a packet, disable method
Something was clearly going wrong with the SSH daemon, so I built the latest version of both it AND the OpenSSL library from source and STILL I got the same result!
Please help me, Electronic Replicant, before I go insane!
A: The public key file must be named authorized_keys, not authorized-keys.