红联Linux门户
Linux帮助

Ubuntu使用git clone时,网速很慢,解决方法

发布时间:2016-08-19 09:55:45来源:linux网站作者:bolvtin
使用ssh –v git@github..com 查看一下为什么占用了网速。
 
解决方法:
sudo vim /etc/ssh/ssh_config
将GSSAPIAuthentication yes
改为:
GSSAPIAuthentication no
 
参考:ubuntu环境下使用git pull push代码缓慢的问题
最近装了ubuntu系统,git pull push 代码的时候非常慢,上网查了一下,发现问题所在,以下是原文:
Some of our developers installed Ubuntu 10.04 and they are experiencing slow remote operation specifically git fetch, pull and push. I first suspected an error in the git server setup using indefero but the other users on Ubuntu 9.04 did not have this problem.
Investigating further, I found that using ssh to connect to the git server was also slow which could be the cause of the problem. To find out what happens during ssh connection I did:
ssh -v git@git-server
This revealed that ssh was spending a lot of time on using gssapi-with-mic.
To turn this off, I modified the file /etc/ssh/ssh_config to add
GSSAPIAuthentication no
Sure enough, the git operations improved and it has now stopped becoming a chore to do git fetch, pull and push.
I hope you found the post useful. You can subscribe via email or subscribe via a feed reader to get relevant updates from this blog. Have a nice day.
 
本文永久更新地址:http://www.linuxdiyf.com/linux/23434.html