Issue #10092 resolved

git push hangs when using SSH key with a git url

shinsui
created an issue

I created a bitbucket account today morning and was successfully able to create and push repositories using a git url and an ssh key.

Now, at night, I'm trying to push a commit, but it just hangs. Here's the debug output:

git push --verbose Pushing to git@bitbucket.org:xxxx/xxx.git <hang>

ssh -T is also hanging (worked in the morning)

ssh -T git@bitbucket.org -v OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: Connecting to bitbucket.org [131.103.20.167] port 22. <hang>

Comments (8)

  1. Callum Macdonald

    I think I'm seeing this issue from one of my hosts. Been pushing & pulling all morning without issue, but now getting errors on one server only:

    $ git pull
    Error reading response length from authentication socket.
    Connection closed by 131.103.20.167
    fatal: The remote end hung up unexpectedly
    

    Strangely, exactly the same command on a different host (my local machine) works fine. Trying ssh -Tv git@bitbucket.org works locally but not on the host with the issue.

    $ ssh -Tv git@bitbucket.org                                                                                                      [2/503]
    OpenSSH_5.9p1 Debian-5ubuntu1.4, OpenSSL 1.0.1 14 Mar 2012
    ...
    debug1: Roaming not allowed by server
    debug1: SSH2_MSG_SERVICE_REQUEST sent
    debug1: SSH2_MSG_SERVICE_ACCEPT received
    Error reading response length from authentication socket.
    Connection closed by 131.103.20.167
    
  2. Log in to comment