I can ssh to a server using my windows machine. There, I put the ssh key of my Linux machine (~/.ssh/id_rsa.pub
) into the ~/.ssh/authorized_keys
file. However, I cannot ssh to the server using my Linux machine:
$ ssh xyz@172.16.0.32
sign_and_send_pubkey: signing failed for RSA "/home/xyz/.ssh/id_rsa" from agent: agent refused operation
xyz@172.16.0.32: Permission denied (publickey).
What could I be doing wrong?
Edit:
I just applied
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys
which did not have an effect on the issue.
~/.ssh/id_rsa.pub
(the public key) needs644
permissions check this for example. You can try and see if that helps.