This article is first published in the dark world.
Over the past few days, I have used SSH to connect to the centos System in Ubuntu and found that the connection is slow. It is recommended that a connection take about 30 s. It is very pitfall, as follows:
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 "/>
Later, I found this was a bug in Ubuntu. To solve this bug, you only need to modify/etc/ssh/ssh_config. As follows:
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 "/>
Modify gssapiauthentication in the ssh_config configuration file from yes to 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 "/>
Then, use SSH to connect to centos again and it will soon become possible.
This article from the "muddy world" blog, please be sure to keep this source http://ilanni.blog.51cto.com/526870/1546412
Rotten mud: [solution] Using SSH to connect to centos in Ubuntu is very slow