docs(troubleshooting): fix: Host key verification failed

This commit is contained in:
zjkjzj
2021-04-27 17:22:53 +08:00
parent 1003f69684
commit 6574e42b9c

View File

@@ -539,4 +539,23 @@ fatal: 无法读取远程仓库。
参考:[使用curl出现gnutls_handshake() failed: Error in the pull function或者GnuTLS recv error: Error in the pull](https://blog.csdn.net/anlian523/article/details/90729063)
* 方法一:`sudo apt-get install libcurl4-openssl-dev`
* 方法二:开启代理(推荐)
* 方法二:开启代理(推荐)
## 问题十八Host key verification failed.
```
+ git push --force ssh://git@gitlab.zhujian.tech:7020/****/test.git master
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
```
在网上找了很多资料,提出的解决方案是重新设置`ssh`公/私钥。当前我的问题不是这个,而是`.ssh/config`重新配置
```
Host <xxx/自定义gitlab地址>
Port xxx ---------------> 这个是关键默认为22当前应该设置为7020
StrictHostKeyChecking no
```