昨天晚上push到github的时候突然提示ssh_exchange_identification: Connection closed by remote host git
,搜了一圈都是说ssh连接数满了,并没有符合我情况的解决方案。
解决
因为是ssh出了问题,就用调试模式输出了一下。
ssh -v git@github.com
看到有个提示
debug1: Executing proxy command: exec nc -x localhost:1080 github.com 22
突然想起来git的流量我都走了ss,再看了一下ss没开起来。打开ss后问题解决。