Git has a long delay between git pull and password request

I'm on Ubuntu 13.10 and git recently started acting weird. Whenever I click or click, it takes about 20 seconds between the start of the command and the delay with the password request.

My remote url looks like username @ git.myserver.com:/project/directory/

The problem has only recently begun. I do not use the default git user, but the user created on the server and added to the git group.

The repo is not so great, and since there is a delay between running the command and asking for the password, I guess its network problem. The server is running on my local network, so connection speed should not be a problem.

Any suggestions?

Edit: here is a screenshot. Delay of 20 s is between "git pull" and "Enter Password" git pull --verbose

FIXED . According to the accepted answer, it was GSSAPIAuthentication. I just created the ~ / .ssh / config file and added:

Host * GSSAPIAuthentication no 
+6
source share
1 answer

Based on your editing, this sounds like a hang when you establish a connection through SSH. If you typed SSH on the server, you are likely to see a similar delay.

In my experience, this is usually the result of enabling GSSAPIAuthentication, which, unfortunately, is enabled by default on new SSH installations.

The simplest client / server debugging and repair instructions I found in Coderwall .

You can disable GSSAPIAuthentication on the client or server. I would recommend doing this on the server side, so other clients will not have this problem.

+4
source

All Articles