当前位置:   article > 正文

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

the authenticity of host github.ocm can't

原因是本地仓库和远程的SSH不匹配,解决办法:

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

2. ls -al ~/.ssh

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

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

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

6.正常push

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/黑客灵魂/article/detail/741436
推荐阅读
相关标签
  

闽ICP备14008679号