Showing posts with label sign_and_send_pubkey: signing failed: agent refused operation. Show all posts
Showing posts with label sign_and_send_pubkey: signing failed: agent refused operation. Show all posts

Saturday, July 13, 2019

sign_and_send_pubkey: signing failed: agent refused operation

If you are getting this ssh error while connection to any remote instance, you might have changed public and private keys recently.

To fix this issue you need to attach your ssh keys with running ssh agent. Run command
ssh-add

If you get warning 'Permissions are too open.' You need to give 400 permission to your ssh keys.

chmod 400 ~/.ssh/id_rsa
chmod 400 ~/.ssh/id_rsa.pub

Now it should not show error ' signing failed: agent refused operation' while connecting to remote host.