The authenticity of host ‘‘ can‘t be established.
2020-07-01 10:40
926 查看
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 rights and the repository exists.
排查过程
$ cd ~/.ssh $ ll total 9 -rw-r--r-- 1 a9665 197609 1675 3月 25 2019 id_rsa -rw-r--r-- 1 a9665 197609 401 3月 25 2019 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 成功
相关文章推荐
- git提交到远程库时提示the authenticity of host can't be established
- SSH连接时提示“THE AUTHENTICITY OF HOST XX CAN’T BE ESTABLISHED”
- git使用时遭遇the authenticity of host can't be established
- The authenticity of host 'localhost (::1)' can't be established.
- SSH 出现 The authenticity of host xxx can't be established.
- SSH连接时提示“THE AUTHENTICITY OF HOST XX CAN’T BE ESTABLISHED
- The authenticity of host '0.0.0.0 (0.0.0.0)' can't be established.
- GIT版本管理异常总结001---copssh安装后登录异常The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
- The authenticity of host '211.82.83.244 (211.82.83.244)' can't be established.
- ssh连接The authenticity of host can't be established
- ssh The authenticity of host '172.18.19.XXX (172.18.19.XXX)' can't be established.
- The authenticity of host '0.0.0.0 (0.0.0.0)' can't be established.
- Error:The authenticity of host 'github.com (192.30.255.112)' can't be established.
- ssh登录 The authenticity of host 192.168.0.xxx can't be established.
- 好记心不如烂笔头,ssh登录 The authenticity of host 192.168.0.xxx can't be established. 的问题
- ssh连接时提示THE AUTHENTICITY OF HOST XX CAN’T BE ESTABLISHED
- ssh登录The authenticity of host x.x.x.x can't be established.的问题
- Git clone或push时会报错 The authenticity of host '192.168.XX.XX ' can't be established.已解决
- The authenticity of host 192.168.0.xxx can't be established
- The authenticity of host 'www.101du.net (60.210.17.34)' can't be established. RSA key fingerprint is xxxx. Are you sure you want