昨天晚上push到github的時候突然提示ssh_exchange_identification: Connection closed by remote host git
,搜了一圈都是說ssh連接數滿了,並沒有符合我情況的解決方案。
解決
因爲是ssh出了問題,就用調試模式輸出了一下。
ssh -v [email protected]
看到有個提示
debug1: Executing proxy command: exec nc -x localhost:1080 github.com 22
突然想起來git的流量我都走了ss,再看了一下ss沒開起來。打開ss後問題解決。