…按照网上好多教程试了一下:
- 新建密钥,添加到gitee,重新测试。
- 修改host,加入gitee的ip地址到里面去。
- 修改.gifconfig配置文件,配置成ssh的仓库链接。 这上面的方法都不行,后面发现一篇文章:SSH连服务器时,连接不上,出现以下错误的原因与解决办法。 才知道是因为一般启动gitee的时候配置的这个文件,修改之后最后删除掉,而且我之前还残留了很多别的密钥文件,只保留需要的密钥,就可以成功了。


版权归原作者 阿四与你 所有, 如有侵权,请联系我们删除。
…按照网上好多教程试了一下:


git解决ssh: Could not resolve hostname gitlab.xxxx.com
VsCode远程ssh连接失败:Could not establish connection to XXX
git pull 报错 could not read from remote repository解决
Git解决fatal: Could not read from remote repository.的问题
git clone出现fatal: Could not read from remote repository解决办法
GitHub新手必看:SSH密钥设置和‘Permission Denied‘错误解决指南
Git问题 “fatal: Could not read from remote repository.“
git 解决 “fatal: Could not read from remote repository.“
IDEA Git 报错could not read from remote repository