当前位置:   article > 正文

git 解决:The authenticity of host '[ssh.github.com]:443 ([192.30.253.123]:443)' can't be established._windows git the authenticity of nost

windows git the authenticity of nost

git 解决:The authenticity of host ‘[ssh.github.com]:443 ([192.30.253.123]:443)’ can’t be established.

换了一部电脑,git clone的时候,报了这样的错误:

The authenticity of host '[ssh.github.com]:443 ([192.30.253.123]:443)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
  • 1
  • 2

然后下面还有这样的提示:选择 yes

Are you sure you want to continue connecting (yes/no)? yes
  • 1

原来是少了一个known_hosts文件,本来密钥文件应该是三个,现在是两个,便报了这样的错误,此时选择yes回车之后,便可,同时生成了缺少了的known_hosts文件:
在这里插入图片描述
然后,再试试git clone,如果还是报错的话,就将远程仓库对应的密钥删掉,重新将rsa.pub添加为新的密钥
就可以了。
在这里插入图片描述
在这里插入图片描述

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

闽ICP备14008679号