从github下载代码,The authenticity of host ‘github.com (13.229.188.59)‘ can‘t be established

当用ssh去连接github下载代码时,提示The authenticity of host 'github.com (13.229.188.59)' can't be established,有可能是你的主机上的公钥没有添加到github上,在github添加上即可。

从github下载代码,The authenticity of host ‘github.com (13.229.188.59)‘ can‘t be established_第1张图片

登录github上后,在Settings->SSH and GPG keys里添加id_rsa.pub的内容即可,如果没有id_rsa.pub,用命令ssh-keygen一步步生成即可。

添加后再git clone成功:

从github下载代码,The authenticity of host ‘github.com (13.229.188.59)‘ can‘t be established_第2张图片

你可能感兴趣的:(Git)