go mod tidy报错:Host key verification failed.
报错如下
Host key verification failed.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
原因是git权限校验失败 .ssh/known_hosts文件下没有对应ip(域名)配置
解决方法:手动git clone一下该仓库代码, .ssh/known_hosts就可自动生成配置
- 网上说了很多方法从该文件删除配置,尝试无效,这种情况本身就没配置,需要添加