Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

.ssh dir is chmodded 700, id_rsa.pub 600, id_rsa 400.

I ran ssh-keygen -t rsa, imported key to launchpad and ran bzr branch lp:unity, but got error message:

Agent admitted failure to sign using the key.
Permission denied (publickey).
bzr: ERROR: Connection closed: Unexpected end of message. Please check connectivity and permissions, and report a bug if problems persist.

auth.log:

Nov 28 20:23:13 ubuntu sudo:  deltrem : TTY=pts/0 ; PWD=/home/deltrem/Documentos/repositories ; USER=root ; COMMAND=/usr/bin/bzr branch lp:unity
Nov 28 20:39:01 ubuntu CRON[2959]: pam_unix(cron:session): session opened for user root by (uid=0)
Nov 28 20:39:01 ubuntu CRON[2959]: pam_unix(cron:session): session closed for user root
Nov 28 20:41:04 ubuntu gnome-screensaver-dialog: gkr-pam: unlocked login keyring
share|improve this question
    
Are you running ssh-keygen or are you running sudo ssh-keygen? – James T Nov 28 '10 at 23:12
    
I'm running ssh-keygen. – Delirium tremens Nov 28 '10 at 23:17
    
The user is connecting to Launchpad, so neither his auth.log nor authorized_keys have anything to do with the problem. – grawity Nov 29 '10 at 15:37

You may need to load the key into the agent with ssh-add.

If you've done that, check if you're affected by one of the related Ubuntu bugs: 201786, 328127, 488296.

share|improve this answer

Following advice from this How to solve “agent admitted failure to sign using the key” error?, I just logged out and back in on the client. Everything started working just fine again.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .