skip to Main Content

I’m on ubuntu desktop 22 and I have installed git version 2.37.1, I’m trying to clone a repository using ssh after some minutes apper this error:

"Connection to bitbucket.org closed by remote host"

Any idea?

2

Answers


  1. Chosen as BEST ANSWER

    I found 2 problems.

    1. The repository were too big more that 600 Mb.
    2. My internet had problems with bandwidth.

    So, I found a git command for clone just a part of history commits. This helped to clone my proyect althogh my internet bad bandwidth.

    git clone --depth=1 -b your_branch_name [email protected]:benjamin_castillo/my_own_proyect.git
    

  2. You should trace network connection by this command:

    GIT_TRACE=1 GIT_CURL_VERBOSE=1 GIT_SSH_COMMAND="ssh -vvv" git push --progress -v origin

    You can view this helpful links:

    Connection to bitbucket.org closed by remote host

    Connection closed… when cloning a project form bitbucket

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search