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:
- 30 Handy Bash Shell Aliases For Linux / Unix / Mac OS X
- Top 30 Nmap Command Examples For Sys/Network Admins
- 25 PHP Security Best Practices For Sys Admins
- 20 Linux System Monitoring Tools Every SysAdmin Should Know
- 20 Linux Server Hardening Security Tips
- Linux: 20 Iptables Examples For New SysAdmins
- Top 20 OpenSSH Server Best Security Practices
- Top 20 Nginx WebServer Best Security Practices
- 20 Examples: Make Sure Unix / Linux Configuration Files Are Free From Syntax Errors
- 15 Greatest Open Source Terminal Applications Of 2012

- My 10 UNIX Command Line Mistakes
- Top 10 Open Source Web-Based Project Management Software
- Top 5 Email Client For Linux, Mac OS X, and Windows Users
- The Novice Guide To Buying A Linux Laptop














{ 14 comments… read them below or add one }
Great tip !!!
Came across this answer after trying a million things. I can’t believe it was that simple. Thank you!!!
Thanks
ssh-add worked for me!!
Thanks!
ssh-add worked for me!!
thks
This was a great reference starting page,
kl thanks
**Agent admitted failure to sign using the key.**
ssh-add is ultimate solution for above problem.
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…
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.
thx
was discouraged in the past about password-less ssh
but this post
has me dancing!
thank you, you saved the day one more time
Great. This fixed it, thanks!
Thanks a lot…ssh-add worked for me!
-Pratheep
thank you very much, that was really helpful for cloning my repository.