I'm trying to ssh to myself (I'm running ansible on my local dev machine). I want to be able to ssh to myself without being prompted for my password.
So...
I ran:
ssh-keygen -t rsa
When prompted for the password, left it blank
ssh-copy-id 127.0.0.1
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
chmod og-wx ~/.ssh/authorized_keys
ssh-add
When I then ran ssh 127.0.0.1, it prompted me for a password! What the heck? This error was also thrown:
sign_and_send_pubkey: signing failed: agent refused operation
So I checked out: sign_and_send_pubkey: signing failed: agent refused operation
it says to run ssh-add -l which I did and I got results back.
Also, ~/.ssh is 700 the contents of that directory are 600
How do I keep from getting prompted for a password when using ssh?