Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Issues with clone/fetch over SSH

Hi we are getting having intermittent problems with fetching multiple repositories due to this error:

Caused by: hudson.plugins.git.GitException: Command "git fetch --tags --progress +refs/heads/*:refs/remotes/origin/*" returned status code 128:
stderr: Connection closed by
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

1 answer

0 votes

Hello @Martin Pivarník,

Well, from this much of detail I can say only that the SSH key used to run this operation:

  • is not recognised at all (not associated with any user or repository)
  • is associated with a user that doesn't have access to the repository in question
  • is an access key for a different repository
  • OR repository simply doesn't exist

If the repository exists, I'd suggest you to enable verbose log for SSH and check which key is used and where it is registered in Bitbucket.

Hope this helps. Let me know if you have any questions.


Hey Daniil, the issue seems to be gone now.

Like Daniil Penkin likes this

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,755 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you