Discuss / Git / 这一步报错了 git push -u origin master

这一步报错了 git push -u origin master

Topic source

-申-昜

#1 Created at ... [Delete] [Delete and Lock User]

The authenticity of host 'github.com (192.30.252.131)' 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)? Host key verification failed. fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists.

请问这个怎么解决??

-申-昜

#2 Created at ... [Delete] [Delete and Lock User]

RSA key fingerprint is 16:27:ac:a5:76:28:2d:36:63:1b:56:4d:eb:df:a6:48. 这个是电脑上提示的代码

b1:ab:f6:17:4f:ea:6c:9c:2e:03:d8:dc:4f:94:25:a4 这个是复制到github上的代码 不一样是什么原因

是造ssh码的时候默认选项你命名了 把公钥和私钥重命名为id_rsa。。后放在.ssh下面

Colin__阿哈

#4 Created at ... [Delete] [Delete and Lock User]

我也碰到了这个问题。。你是怎么解决的~ 上github-help也没能找出来。

hugSunshine-

#5 Created at ... [Delete] [Delete and Lock User]

Are you sure you want to continue connecting (yes/no)? 之后不要直接回车确认,输入“yes”就可以了,来源http://blog.csdn.net/fffy2366/article/details/42437105

我也试了很多方法,后面解决是先确认网连接的是外网,不是公司的内网。其次创建SSH Key的时候按enter键确认目录是在你创建的库的目录下,因为当时我还有其他的库,所以总是创建在其他库里,这样的SSH Key用了会报错。最后还有一个不用SSH改用HTTP解决这个的办法,就是在出现这种情况后用git remote rm origin,然后把HTTP的那两步操作一遍就可以了。我是这么解决的,不知道对你有没有帮助。

这个网站上有常见的错误提示。http://blog.csdn.net/god_wot/article/details/10522405

hoyin_wong

#8 Created at ... [Delete] [Delete and Lock User]

@稀里哗啦NZND 谢谢你的回答,这个解决了我的错误提示,谢谢


  • 1

Reply