Git Push的時候提示ssh_exchange_identification: Connection closed by remote host git 的解決辦法

昨天晚上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後問題解決。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章