当前位置: 代码迷 >> 综合 >> The authenticity of host 'github.com (13.229.188.59)' can't be established.
  详细解决方案

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

热度:107   发布时间:2023-09-23 12:45:46.0

昨天重装了系统今天git push的时候发现了这个问题,原因是本地仓库和远程的SSH不匹配

解决办法:

1.出现Are you sure you want to continue connecting (yes/no)?时,选择yes

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

2. ls -al ~/.ssh

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

3. ssh-keygen -t rsa -C "github用户名",按三次回车

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

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

5.登陆github,点击头像-settings-new SSH,复制新生成的SSH

6.正常push

 

  相关解决方案