Tip : How to solve “agent admitted failure to sign using the key” error ?

A very simple tip that can save a lot of time.

When i wanted to do a git clone, I had the given error :

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

I found that this is an SSH error.

One of the readers, Leonardo Hessel, pointed that out that ssh-add is also a solution:

ssh-add

Another solution is simply to login and logout and it should work.

 

  • Dima

    Thanks, it work’s :-)

    • Baptiste Wicht

      You’re welcome :)

      Good to see that my posts are helpful.

      • http://www.facebook.com/people/Mahlatse-Makalancheche/100001807022804 Mahlatse Makalancheche

        ssh-add is queen. Thanks a lot to you for the idea
        By the way, if like me, you just got stuck with that message and you were wondering where to run the command, you have to run it on the client machine

        • Bnvijay

          Thanks solved my prob…………

  • Dima

    Thanks, it work’s :-)

    • Baptiste Wicht

      You’re welcome :)

      Good to see that my posts are helpful.

  • Leonardo Hessel

    ssh-add, its solve the problem.

    • http://pulse.yahoo.com/_KL4RCWOSWPU6B5BWYNLRZNCFMQ Ruben

      ssh-add solved my issue as well. Thanks

    • http://twitter.com/amila_sampath Amila Sampath

      I just tried with ssh-add.its solved my issue.
      You saved my day.
      Thank you very much Leonardo.

    • Erick

      Thx a lot, you saved me a lot of time.

    • Rohit

      Worked for me too… Thanks 

    • greatghoul

      it works, thx.

    • MeetJesus!

       mee tooo ssh-add! oh yeah!

    • Sourav Gulati

       Thank you so much Leanardo…  it helped a lot

    • http://www.facebook.com/people/Sugar-Ui/100001768970179 Sugar Ui

      I don’t know what ‘ssh-add’ does or means, but anyway I typed ‘ssh-add’ at my working directory(terminal), and now… it works. I already spent a day for it. Thank you a lot.

      • wichtounet

        ssh-add simply adds your private key identities to the authentication agent, fixing the error ;)

        • http://www.facebook.com/people/Sugar-Ui/100001768970179 Sugar Ui

          Thank you for reply!

  • http://www.direitoconstitucional.net Fred Junior

    ssh-add, man!

  • Arramad

    you are briliant…..hundreds of stupid posts out there are trying so freakin complicated solutions without even working..but you are giving it that simple! and it works!
    keep going man!

  • http://twitter.com/monyiliev Simeon Iliev

    Brilliant, using ssh-add on Ubuntu Desktop 11.04 beta 2 worked. Thanks dude

  • Sachchidanand

    Thank you so much…!!

    You saved my day..!!

  • Moorick

    Thanks for idea ))

  • Blah

    you can also just sudo su –

  • http://twitter.com/seancorfield Sean Corfield

    Thanx for this tip. I’d never seen that error until today and yours was the #1 hit on Google – and solved the problem straight away!

  • http://www.facebook.com/people/Luis-García-Acosta/1574298579 Luis García Acosta

    ooohhh goodness, I never comment on posts but I am soooo happy, that have to say THANKS!! you saved my day :-)

    • Baptiste Wicht

      you’re welcome :)

  • Frostmind

    Thank you for this tip! :) it saved indeed a lot of time

  • dhiii

    I can’t believe it.  ssh-add worked.   I’ve been messing with this for days.   THANK YOU!

  • dhiii

    I can’t believe it.  ssh-add worked.   I’ve been messing with this for days.   THANK YOU!

  • Kevein

    thank you…..

  • http://www.facebook.com/matthews.willie Willie Matthews

    I been sitting here for hours trying to figure this out.

  • Adelin_H

    thank you very much ! 

  • john

    Thank you very much!

  • Anonymous

    shh-add works!

  • Harish Es

    Thanks, that helped on my Ubuntu 11.04 and cloning from Git.

  • Rahulpatil2387

    it;s work by your suggestion, Thanks

  • Talespin_kit

    thanks very much

  • D21anthony

    This worked for me as well, Thank you!

    Agent admitted failure to sign using the key.
    Permission denied (publickey)git-add

  • Dkumar431

    ssh-add, its solve the problem. i weasted a whole day for this.

  • Guess

    Worked as advertised, thanks.

  • Johnny

    yes, it works like charm. Thanks!

  • Pingback: Solve « agent admitted failure to sign using the key » ? | cd /etc

  • Art

    jeez. log in and logout. thanks! 

  • Raviteja

    thankx Baptiste Wicht just a simple lout and login solved my problem

  • Pingback: Prepare your Ubuntu laptop as a git client « blog.lebrijo.com

  • Isabelle

    Thank you !! I’ve been searching for an hour how to repair my problem, and “ssh-add” solved it.

  • http://www.facebook.com/Pweetymizlizee Oche Elizabeth Onyeche

    thanks alot the ssh-add worked, may the Lord bless you

  • xeroCuil

    I needed exactly this. Thanks for the post.