100字范文,内容丰富有趣,生活中的好帮手!
100字范文 > The authenticity of host ‘‘ can‘t be established.

The authenticity of host ‘‘ can‘t be established.

时间:2020-12-09 00:10:29

相关推荐

The authenticity of host ‘‘ can‘t be established.

git pull(ssh协议)远程分支 报 The authenticity of host ‘xxx’ can’t be established. (window)

错误效果

The authenticity of host 'XXXXX' can't be established.ECDSA key fingerprint is SHA256:eoLmXa/HGnUXDPFfNQHeqLeyzUbpzVJTvTWluSZfgsiyT8.Are you sure you want to continue connecting (yes/no/[fingerprint])?Host key verification failed.fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists.

排查过程

$ cd ~/.ssh$ lltotal 9-rw-r--r-- 1 a9665 197609 1675 3月 25 id_rsa-rw-r--r-- 1 a9665 197609 401 3月 25 id_rsa.pub-rw-r--r-- 1 a9665 197609 1280 4月 17 22:57 known_hosts

疑问:通过 进入ssh 目录发现 有三个文件 id_rsa.pub 已经配置到gitlib 里面了,公私钥也是一对但还是报错,网上查了说所以没有 known_hosts 文件,但我的明显有

解决:删掉known_hosts 重新执行 git clone 分支

The authenticity of host 'XXXXX' can't be established.ECDSA key fingerprint is SHA256:eoLmXa/HGnUXDPFfNQHeqLeyzUbpzVJTvTWluSZfgsiyT8.Are you sure you want to continue connecting (yes/no/[fingerprint])?

这个地方切记一定要输入 yes,直接按enter键 不然是不能生成known_hosts,正常pull 代码下来的

结果:代码 pull 成功

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。