4

I am trying to upload an existing folder into gitHub. Following instructions I typed the following in windows:

$ git remote add origin git@github.com:myname/myproject.git

and then

$ git push origin master

I get the following error.

The server's host key is not cached in the registery. you have no guarantee that the server is the computer you think it is.
THe server;s rsa2 key fingerprint is:
blah blah blah blah
Connection abandoned.
Fatal : the remote end hung up unexpectedly. 

What does this error mean and how do I resolve it?

Tim Post
  • 33,371
  • 15
  • 110
  • 174
Codier
  • 2,126
  • 3
  • 22
  • 33
  • No one can help with this overly brief question. I guess you might be on Windows, but I can't tell. – bmargulies Apr 06 '11 at 00:26
  • You'll receive a better answer to this question if you paste the exact error instead of summarising. Even better, include your OS, what you did to set up your environment, and anything at all that might be useful in helping you diagnose. – Wesley Apr 06 '11 at 00:33
  • Ok... I have added in more details. Thought it will be a common problem to any one new to github – Codier Apr 06 '11 at 00:33
  • hi Wesley, there is no way to copy from the command console(opend it from git Extensions). But the error is almost exact without the finger print code – Codier Apr 06 '11 at 00:35

1 Answers1

7

From this article:

  1. Open putty
  2. In the Hostname box, type github.com and click Open
  3. You’ll receive a prompt The server’s host key is not cached in the registry. Click Yes then close Putty (don’t bother trying to log in
  4. Github’s host key will now be cached
Pang
  • 9,564
  • 146
  • 81
  • 122
Karl Bielefeldt
  • 47,314
  • 10
  • 60
  • 94