Showing posts with label Agent admitted failure to sign using the key. Show all posts
Showing posts with label Agent admitted failure to sign using the key. Show all posts

Git Error: Permission denied (publickey)

Hello,

The other day I was trying to fetch the changes from the remote repo and the following error has been displayed:

$ git fetch origin

Agent admitted failure to sign using the key.
# Permission denied (publickey).



In this case the reason was that I've changed / switched between two different ssh keys. However if you got similar issues the problem has been fixed by telling ssh to use the key by running the following command:

$ ssh-add

That's it - problem solved :)