Fix Git “Agent admitted failure to sign”

Don’t know why I got this error when I pull from my project, after added a new ssh key on my github account.

Agent admitted failure to sign using the key.
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

To solve that error follow this step, enter on your terminal.

$ eval "$(ssh-agent -s)"
$ ssh-add
$ eval "$(ssh-agent -s)"
$ ssh-add ~/.ssh/my_other_key

Reference: https://help.github.com/articles/error-agent-admitted-failure-to-sign/

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s