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.
Thanks, very useful. Solved my problem :-)
ReplyDeleteCheers
Rock on, thanks
ReplyDeletethank you, this fixed horribly slow updates for me!
ReplyDeleteHi Kris, Jef and Mike,
ReplyDeleteI'm glad I was able to help you with this post
In Ubuntu 12 things should be done differently.
ReplyDeleteThe file (ssh_config) already has
GSSAPIAuthentication no
but this is commented out
Then at the bottom of the file you have
GSSAPIAuthentication yes
which needs to be commented
Well... I just came back here a second time. Some git connections still suffer from this problem in Ubuntu 12.04.
ReplyDeleteDitto; I just started experiencing this issue this week. I'm guessing a change was pushed out to the ssh client in ubuntu. This fixed it!
ReplyDeleteSuper helpful, thanks heaps.....
ReplyDelete