標籤:爛泥 解決 ubuntu 使用 ssh
本文首發於爛泥行天下。
這幾天在Ubuntu下使用SSH串連centos系統,發現串連很慢。建議一個串連大約需要30s。很是坑爹,如下:
650) this.width=650;" title="clip_image001" style="border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px;" border="0" alt="clip_image001" src="http://img1.51cto.com/attachment/201408/29/526870_140927977802FD.png" width="753" height="268" />
後來查詢相關資料,發現這個是Ubuntu的一個Bug。解決此Bug很簡單,只需要修改/etc/ssh/ssh_config即可。如下:
sudo vi /etc/ssh/ssh_config
650) this.width=650;" title="clip_image002" style="border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;margin:0px;padding-right:0px;border-top-width:0px;" border="0" alt="clip_image002" src="http://img1.51cto.com/attachment/201408/29/526870_14092797781Ec3.png" width="632" height="216" />
把ssh_config設定檔中GSSAPIAuthentication由原來的yes修改為no即可。
650) this.width=650;" title="clip_image003" style="border-right-width:0px;background-image:none;border-bottom-width:0px;padding-top:0px;padding-left:0px;padding-right:0px;border-top-width:0px;" border="0" alt="clip_image003" src="http://img1.51cto.com/attachment/201408/29/526870_1409279779T6vt.png" width="727" height="462" />
然後再次使用ssh串連centos就很快了。
本文出自 “爛泥行天下” 部落格,請務必保留此出處http://ilanni.blog.51cto.com/526870/1546412
爛泥:【解決】Ubuntu下使用SSH串連centos系統很慢