0

I followed this tutorial to generate SSH key on github: At step number 5 of the above linked tutorial,after I type ssh -T [email protected] I am supposed to see this:

The authenticity of host 'github.com (207.97.227.239)' can't be established.
# RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48.
# Are you sure you want to continue connecting (yes/no)?

I, however, see this:

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

Then later when I tried to push a file to repository using git push -u origin master, I get this:

Agent admitted failure to sign using the key.
Permission denied (publickey).
fatal: The remote end hung up unexpectedly

I think the problem is with the set up of SSH key. How can I get solve this problem?

I am using Linux.

7
  • have you entered the SSH key in Account Settings-> SSH Key, make sure you haven't modify is Commented Jun 2, 2012 at 6:58
  • which os are you using?? Commented Jun 2, 2012 at 6:59
  • @NixitPatel I am on Linux - Ubuntu 12.04 Commented Jun 2, 2012 at 7:01
  • @NixitPatel and yes I have entered SSH key to account. and the two keys(the one in my computer and my account) match. Commented Jun 2, 2012 at 7:02
  • might you have already checked it but, make sure your public key have full permission. or other thing you can do is delete the existing key and try regenerate it. Commented Jun 2, 2012 at 7:26

1 Answer 1

5

After googleing I found that most possible chances is that your key is corrupt.

and the things that you can try is...

and ssh-add is also the one which has solve the problem of lots of people ssh-add ~/.ssh/id_rsa

try logout and login or

hear is few more things that you can try http://sampathm.blogspot.in/2011/06/agent-admitted-failure-to-sign-using.html and SSH cannot authenticate to [email protected] hope this help

Sign up to request clarification or add additional context in comments.

1 Comment

Restarting the computer seems to do the trick! Thanks for your help!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.