ssh git clone error "Connection to bitbucket.org closed by remote host" on ubuntu 22

Viewed 69

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

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 git@bitbucket.org:benjamin_castillo/my_own_proyect.git
Related