kex_exchange_identification: Connection closed by remote host Connection closed by 20.205.243.166 port 22 致命错误:无法读取远程仓库。 请确认您有正确的访问权限并且仓库存在。
时间: 2023-10-21 12:57:58 浏览: 332
这个错误信息表明在进行git push操作时,连接到远程主机的过程中出现了问题。具体错误信息显示为"kex_exchange_identification: Connection closed by remote host Connection closed by 20.205.243.166 port 22 fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists."。这个错误可能有几个可能的原因。
首先,这个错误可能是由于您没有正确的访问权限导致的。请确保您已经得到了正确的访问权限,并且在远程主机上配置了正确的认证方式。您可以联系主机管理员以确认您的访问权限。
其次,这个错误也可能是由于远程仓库不存在导致的。在执行git push之前,请确保您的远程仓库已经创建,并且您已经正确地配置了远程仓库的URL。您可以使用"git remote -v"命令来查看您当前设置的远程仓库URL。
最后,这个错误也可能是由于网络连接问题导致的。请检查您的网络连接是否正常,并且确保您可以正常连接到远程主机的端口22。您可以尝试使用其他网络连接或者使用其他端口进行连接来解决这个问题。
综上所述,解决"kex_exchange_identification: Connection closed by remote host Connection closed by 20.205.243.166 port 22 致命错误:无法读取远程仓库。请确认您有正确的访问权限并且仓库存在。"的方法是确保您有正确的访问权限,远程仓库存在,并且网络连接正常。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [git推送远程仓库报错解决](https://blog.csdn.net/m0_68634366/article/details/130036779)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [【错误】kex_exchange_identification: Connection closed by remote hos](https://blog.csdn.net/weixin_43657300/article/details/130137039)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文