5

.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
3
  • Are you running ssh-keygen or are you running sudo ssh-keygen?
    – James T
    Commented Nov 28, 2010 at 23:12
  • I'm running ssh-keygen. Commented Nov 28, 2010 at 23:17
  • The user is connecting to Launchpad, so neither his auth.log nor authorized_keys have anything to do with the problem. Commented Nov 29, 2010 at 15:37

2 Answers 2

6

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.

0

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.

You must log in to answer this question.

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