The authenticity of host 'github.com (52.74.223.119)' can't be established. 解决办法!!!

因为本人新换了电脑,远程仓库重新配置了ssh key , 然后命令窗口使用 git clone 从远程仓库拉取代码的时候,提示:

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

截图说明: 

The authenticity of host 'github.com (52.74.223.119)' can't be established. 解决办法!!!_第1张图片 

然后百度了一下, 说是 .ssh 文件夹缺少一个known_hosts文件。 打开一看果然没有这个文件,度娘说直接输入yes 就好 ,抱着试一试的想法,我输入了yes 回车,果然没让我失望,确实自动生成了这个文件

The authenticity of host 'github.com (52.74.223.119)' can't be established. 解决办法!!!_第2张图片

然后我重新执行 git clone 命令,代码拉取成功。 

The authenticity of host 'github.com (52.74.223.119)' can't be established. 解决办法!!!_第3张图片

你可能感兴趣的:(IT,web)