The authenticity of host 'github.com (13.229.188.59)' can't be established.

在运行git

git clone git@github.com:generalized-intelligence/GAAS.git

发现系统报了这个错,解决办法:
一、首先在该目录下终端输入:github

git config --list

查看一下邮箱和用户名是否正常设置,
在这里插入图片描述
若是不是本身的,就按照下面命令设置一下:web

git config --global user.name "yourname"

git config --global user.email“your@email.com"

二、git输入命令,按三次回车:ssh

$ ssh-keygen -t rsa -C "your@email.com"(请填你设置的邮箱地址),

在这里插入图片描述
3.终端输入,获得密钥svg

cat ~/.ssh/id_rsa.pub生成新的SSH

在这里插入图片描述
四、打开https://github.com/,登录你的帐户,进入设置
进入ssh设置
在这里插入图片描述
在key中将刚刚复制的粘贴进去
在这里插入图片描述
点击add ssh key,
ok!再去试试吧code