Wednesday, June 1, 2011

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

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

I got above error while connecting and cloning my git repository. i have spent almost 6 hours to find the solution. finally i found some solution to overcome this issue.

open the terminal and enter this command

SSH_AUTH_SOCK=0

and then enter your clone command without sudo option.

git clone git@account.beanstalkapp.com:/repo.git

please note that account and repo should be change according to your application.

hope some one will get advantage from this post.

thank you

16 comments:

  1. thank's a lotttttttt yaar

    ReplyDelete
  2. thank you! now I need to understand what "SSH_AUTH_SOCK=0" means! =P

    ReplyDelete
  3. Thanks, it works.

    ReplyDelete
  4. Really Thanks a lot... i have spent almost 2 hours to find the solution.
    my god... :)

    ReplyDelete
  5. Thank you so much, it works for me

    ReplyDelete
  6. Even when you are doing:
    git push origin branch_name

    and getting the same error

    SSH_AUTH_SOCK=0

    this works !!!

    Thanks
    Saurabh

    ReplyDelete
  7. Thanks you very much...

    ReplyDelete
  8. I was facing the same problem.

    This helped for me: http://watchdog.fabwebworld.com/node/1

    Hope it will help someone.

    Cheers

    ReplyDelete
  9. Thanks! It helped.

    ReplyDelete
  10. This comment has been removed by the author.

    ReplyDelete
  11. Hi,
    It saved my time.

    Thanks,
    Aashish

    ReplyDelete

Please keep your comments.