使用ssh从github上下载项目

git报错:The authenticity of host ‘github.com (13.229.188.59)’ can’t be established.
git clone的时候报错如下:
The authenticity of host ‘github.com (13.229.188.59)’ can’t be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)?

其实这个时候输入yes就可以了。
输入后会在你电脑的.ssh文件夹下生成known_hosts文件。这样便不会报错了。
在这里插入图片描述
使用ssh从github上下载项目_第1张图片
最后,在gitbash中 git clone [email protected]:自己的用户名/仓库名.git 下载完毕,成功。
前提:首先应将 url改为 [email protected]:自己的用户名/仓库名.git

你可能感兴趣的:(Java)