github上传文件遇到错误:kex_exchange_identification: read: Software caused connection abort banner exchange:
·
问题场景
github上传文件时,连接不上ssh,输入ssh -T git@github.com,检查连接,出现以下错误:
kex_exchange_identification: read: Software caused connection abort
banner exchange: Connection to 20.205.243.166 port 22: Software caused connection abort
出现原因
其中20.205.243.166是github的地址,22号端口是和你连接的端口。这段话意思是你的22号端口因为某些原因被屏蔽了(可能是学校内网,或者公司内网)。
解决方法
不用SSH地址,而是用Http地址连接。在github仓库那里重新选择一下地址。虽然上传的时候需要登陆一下比较麻烦,但是能传上。
更改方式:
- 解除原有连接:git remote rm origin
- 重新建立连接:git remote add origin<仓库http地址>
更多推荐
所有评论(0)