平时提交代码都还正常,今天突然git push提交代码遇到这个问题:
Connection reset by xx.xxx.xxx.xx port 22
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
提交代码失败。
解决方法: 复制本地的id_rsa.pub(一般windows系统中存在C:\Users\Administrator.ssh)中的内容,然后替换一下仓库中的ssh key。是的,只需要替换一下就正常了。。。和原来内容完全一样。。。。
ps:网上说的的给防火墙增加针对端口22的准入规则并没有什么卵用。。。
pss: 极大可能是网太差了,等等再提交或者用热点。。。。