See morw...

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:

Anonymous said...

thank's a lotttttttt yaar

Adolfo Eloy said...

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

Anonymous said...

Thanks, it works.

Unknown said...

thanks a lot..it worked

Anonymous said...

Thanks a ton

Unknown said...

Happy coding guys

Unknown said...

Happy coding guys

Kirti Parihar said...

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

Unknown said...

Thank you so much, it works for me

Anonymous said...

Even when you are doing:
git push origin branch_name

and getting the same error

SSH_AUTH_SOCK=0

this works !!!

Thanks
Saurabh

Anonymous said...

Thanks you very much...

Unknown said...

Thanks, very helpful

Anonymous said...

I was facing the same problem.

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

Hope it will help someone.

Cheers

Anonymous said...

Thanks! It helped.

ashkira said...
This comment has been removed by the author.
ashkira said...

Hi,
It saved my time.

Thanks,
Aashish