重裝系統后git push和ssh登錄遠程服務器一直鏈接失敗,重裝系統前沒發現這毛病。
后來ssh -v 登錄查看了下日志,發現一直卡在debug1: SSH2_MSG_KEXINIT sent。直到最后鏈接失敗。
網上查了很多,發現是因為mtu設置的數值太大。
詳情參考 https://blog.csdn.net/wjciayf/article/details/76916075
http://techbackground.blogspot.com/2013/06/path-mtu-discovery-and-gre.html
之后開始設置mtu數值


將“硬件”中的配置由“自動”變為“手動”,mtu設置為標准。之后就可以了

