小工具知识网

当前位置: 首页 > 行业知识 > git报错——kex

行业知识

git报错——kex

2026-11-13 18:02:17 来源:互联网转载

1、问题:

在IDE���送的时候,出现了如下的问题,特此记录一下:

kex_exchange_identification: read: Software caused connection abort

banner exchange: Connection to 175.24.250.178 port 22: Software caused connection abort

fatal: Could not read from remote repository.

Please make sure you have the correct access rights

and the repository exists.

出现这个问题的原因呢,可能是因为当时通过 http 连接的路径或者端口号改变了,导致远程仓库与本地仓库不匹配。

2、解决

在项目目录下输入如下命令,重新建立连接,这里会在次输入相关远程仓库的账号密码:

git remote set-url origin 路径

例如下面:

git remote set-url origin https://e.coding.net/lcc/yjwzDispatch/yjwzdispatch_front.git

此时在次推送就不会有问题了!

上一篇:揭秘Python语言之父的传奇人生,从创造者到影响者的故事

下一篇:服务器定制生意怎么做好?