Git的服务器的主机密钥在注册表中没有缓存 - GitHub.com [英] Git server's host key not cached in registry - GitHub.com

查看:1709
本文介绍了Git的服务器的主机密钥在注册表中没有缓存 - GitHub.com的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题<延续一href=\"http://stackoverflow.com/questions/10147521/setting-up-repo-on-github-error-on-push-u-origin-master/10147601\">here:
我试图建立在GitHub上我的第一个Git仓库。 (请注意,这意味着我不能用腻子,我使用OpenSSH,或者至少我应该和我想我)。我一直在这里以下GitHub上的网站的文档。我得到的一切权利直到最后的命令:混帐推-u主产地。它给了我以下错误:

Continuation of issue here: I'm trying to set up my first Git Repository on GitHub. (Note, this means I can't use putty, I'm using openssh, or at least I'm supposed to and I think I am). I've been following the documentation on GitHub's website here. I get everything right up until the very last command: git push -u origin master. It gives me the following error:

The server's host key is not cached in the registry.
You have no guarantee that the server is the computer you think it is.
The server's rsa2 key fingerprint is: ssh-rsa 2048
16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48
Connection abandoned. fatal: The remote end hung up unexpectedly

我猜这意味着我的的known_hosts 文件的SSH-RSA密钥没有找到,但我不知道如何解决这个问题。我试过 SSH -T git@github.com 我登录就好了。我也试着关闭混帐bash和的情况下,重新开放这是一个缓存的问题。这并不解决问题。这是唯一的输出我得到从什么文件表明不同。我希望把一个甜蜜的Java助手库,所以任何帮助将大大AP preciated!

I'm guessing this means that in my known_hosts file their ssh-rsa key isn't found, but I'm not sure how to fix that. I've tried ssh -T git@github.com and I log on just fine. I've also tried closing the git bash and re-opening in case it's a cache issue. This doesn't fix the problem. This is the only output I get that differs from what the documentation indicates. I'm hoping to put up a sweet Java Helper Library, so any help would be greatly appreciated!

推荐答案

理想的解决方案将是(如果你真的不需要使用混帐砰砰)去除GIT_SSH环境变量,并产生与命令一个新的密钥对 SSH-凯基-t RSA -Cyouremail上的Git Bash的话,由于从我从注释了解改变你的GitHub的SSH密钥是腻子和OpenSSH是相互矛盾的。

The ideal solution would be (if you really don't need to use plink in git) removing the GIT_SSH environment variable and generating a new keypair with command ssh-keygen -t rsa -C "youremail" on Git Bash then change your ssh key in github because from what I've understood from the comments is putty and openssh is conflicting.

然而,如果你仍然想使用砰砰可以使用的puttygen生成的PuTTY格式键,然后改变你的公钥在github上并加载PuTTYagent私钥,那么你应该做一个连接与腻子git​​hub.com这会添加githubs指纹known_hosts里面,你是好去。这将是用腻子<一到GitHub上的资源href=\"http://nathanj.github.com/gitguide/tour.html\">http://nathanj.github.com/gitguide/tour.html

However, if you still want to use plink you can use PuTTYgen to generate a PuTTY format key then change your public key in github and load your private key in PuTTYagent then you should do a connect to github.com with PuTTY this would add githubs fingerprint to known_hosts and you are good to go. This would be a resource to github with PuTTY http://nathanj.github.com/gitguide/tour.html

这篇关于Git的服务器的主机密钥在注册表中没有缓存 - GitHub.com的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆