错误“无法建立主机'github.com'的真实性. RSA密钥指纹 [英] Error "The authenticity of host 'github.com' can't be established. RSA key fingerprint "

查看:383
本文介绍了错误“无法建立主机'github.com'的真实性. RSA密钥指纹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在工作中使用我的项目,但是我想在家中与他一起工作,因为我可以登录到家用计算机来处理我的项目.

I use my project at work, but I would like to work with him from home as I can log into my home machine to work with my project.

但是,在家里,我看到以下消息:

However, from home, I see the following message:

The authenticity of host 'github.com (ip)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)?

我该如何克服?

推荐答案

您应该只需回答是",这将更新您的~/.ssh/known_hosts文件.

You should simply be able to answer 'yes', which will update your ~/.ssh/known_hosts file.

之后,您可以使用GitHub SSH URL(前提是您拥有

After that, you can use a GitHub SSH URL (provided you have generated the SSH public/private keys, and registered the public one to your GitHub profile)

注意:ssh密钥生成应使用base64旧的PEM格式(选项-m PEM),而不是新的当前70个字符的OpenSSH.
请参阅"
凭据中私钥的正确格式是什么":

Note: the ssh key generation should use the base64 old PEM format (option -m PEM), rather than the new current 70 chars OpenSSH one.
See "What is the correct format for private key in Credentials":

ssh-keygen -m PEM -t rsa -P "" -f afile

那或者您可以 查看全文

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