I am trying to set up public key access to a couple of machines that I have a user account on.
What I did:
- I used
ssh-keygento generate a key pair (without a passphrase) on my personal computer that I use to access the two machines in question.
- I appended the
id_rsa.pubfile thus created to the
~/.ssh/authorized_keyson both machines.
This setup works fine and lets me SSH onto one machine. For the other machine, though, it still prompts me for my password. I tried using
ssh -vvv and here are the relevant lines of output:
debug1: Offering public key: /xxxx/xxxxx/.ssh/id_rsa debug3: send_pubkey_test debug2: we sent a publickey packet, wait for reply debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password debug1: Trying private key: /xxxx/xxxx/.ssh/id_dsa debug3: no such identity: /xxxx/xxxx/.ssh/id_dsa debug2: we did not send a packet, disable method debug3: authmethod_lookup password debug3: remaining preferred: ,password
I'm then prompted for my password and I can use it to log in normally.
It's the same account on both machines, exported via an NIS map. The machine where authentication succeeds is the NIS server and the other one is the client. My home directories on both machines are not the same (no NFS mount or the like). These are the only differences I can think of that set the two machines apart.
What can be going wrong here?