Git Host key verification failed.如何解决?

git push -u origin master
Host key verification failed.
fatal: Could not read from remote repository.

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

请问如何解决?
一切都是根据教程来的,怀疑是ssh key的问题,全部重新生成了一遍,在虚拟机正常,就是无法上传到Github上。

《L04 微信小程序从零到发布》
从小程序个人账户申请开始,带你一步步进行开发一个微信小程序,直到提交微信控制台上线发布。
《G01 Go 实战入门》
从零开始带你一步步开发一个 Go 博客项目,让你在最短的时间内学会使用 Go 进行编码。项目结构很大程度上参考了 Laravel。
讨论数量: 6
xuding

ssh -T git@github.com 什么结果

6年前 评论

ssh -T git@github.com
返回
Host key verification failed.

6年前 评论

@XuDing

返回
Host key verification failed.

6年前 评论
xuding

本机无法SSH到github.你的ssh key没加好。

6年前 评论

@XuDing SSH Key我重新生成了一遍依旧不行。请问如何检查或者如何添加?

6年前 评论
xuding

我不知道你现在看的是哪个教程。
官方链接(https://help.github.com/articles/adding-a-new-ssh-key-to-your-github-account/)有很详细的解释
如果还不行,加我微信,我看着你加。

6年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!