SSH: Agent Admitted Failure To Sign Using The Key Error And Solution

by on September 17, 2011 · 14 comments· last updated at September 17, 2011

I've recently regenrated and uploaded a new public ssh-key using the ssh-copy-id command. Now I'm getting the following error:

ssh root@server3
Agent admitted failure to sign using the key.
root@server3's password:

How do I fix this problem?

To fix this problem you need logout of your Unix / Linux / OS X / BSD desktop session and log back in again to force the agent to forget identity. Another option is to run the ssh-add command to add RSA or DSA identities to the authentication agent. This will fix your problem without login out from the current session:
$ ssh-add



You should follow me on twitter here or grab rss feed to keep track of new changes.

Featured Articles:

{ 14 comments… read them below or add one }

1 Luis Hernandez January 24, 2012 at 8:14 pm

Great tip !!!

Reply

2 Marcia Cupery June 13, 2012 at 3:19 am

Came across this answer after trying a million things. I can’t believe it was that simple. Thank you!!!

Reply

3 Manojkuamr July 9, 2012 at 1:46 pm

Thanks

Reply

4 Luiyo July 23, 2012 at 6:18 pm

ssh-add worked for me!!

Thanks!

Reply

5 Julian Bruno August 2, 2012 at 1:51 am

ssh-add worked for me!!

thks

Reply

6 Jose August 15, 2012 at 11:24 pm

This was a great reference starting page,
kl thanks

Reply

7 manas ranjan palai August 29, 2012 at 11:38 am

**Agent admitted failure to sign using the key.**

ssh-add is ultimate solution for above problem.

Reply

8 James Ritchie September 4, 2012 at 11:29 am

Yup: this approach worked for me. Got this error during trial 11.2.0.3 Grid Infrastructure installation over pair of Oracle Linux 6.2 VMs in virtualbox on laptop. Cheers Vivek. No reference to this in E22489-06. Maybe Oracle should pay *you* a license…

Reply

9 manas ranjan palai September 5, 2012 at 8:39 am

Actually i tryed ssh-add command in ubuntu 10.04 when i want to logged in to remote linux system without password ,there is an error message came ”Agent admitted failure to sign using the key” and it asked for password then i try ssh-add command and it works fine.

Above error came after creating keys.

Reply

10 sirvon September 8, 2012 at 11:35 pm

thx
was discouraged in the past about password-less ssh
but this post
has me dancing!

Reply

11 Ozan November 8, 2012 at 9:42 am

thank you, you saved the day one more time

Reply

12 Amal Murali February 17, 2013 at 1:07 pm

Great. This fixed it, thanks!

Reply

13 Pratheep March 20, 2013 at 7:33 am

Thanks a lot…ssh-add worked for me!
-Pratheep

Reply

14 kiritisai May 18, 2013 at 12:55 pm

thank you very much, that was really helpful for cloning my repository.

Reply

Leave a Comment

You can use these HTML tags and attributes for your code and commands: <strong> <em> <ol> <li> <u> <ul> <kbd> <blockquote> <pre> <a href="" title="">

Tagged as: , , , , , , , ,

Previous Faq:

Next Faq: