当前位置:   article > 正文

git---如何解决The authenticity of host can‘t be established.以及could not read from remote repository?_git拉代码 the authenticity of host can't be establish

git拉代码 the authenticity of host can't be established,fcdsa key

新生成密钥的时候,git clone或者push的时候,可能会报这样的错误:

```

The authenticity of host 'gitee.com (xxx.xxx.xxx.xxx)' can't be established.

ECDSA key fingerprint is SHA256:xxxxxxxxxxxxxxxxxxxxxxxx.

```

 

could not read from remote repository?

Google之后明白,本地用户.ssh文件夹内少了一个known_hosts文件,本来密钥文件应该是三个,现在只有两个,便报了这样的错误,此时输入yes回车之后,生成了缺少了的known_hosts文件,便可解决这个问题:

```

Are you sure you want to continue connecting (yes/no)? //输入yes,回车

Warning: Permanently added 'gitee.com,xxx.xxx.xxx.xxx' (ECDSA) to the list of known hosts.

ssh_packet_read: Connection clos

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

闽ICP备14008679号