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

Unable to access repo via SSH. fatal: Could not read from remote repository. Edited

Hi,

I've been trying to access BB cloud using SSH but I get the following error

fatal: Could not read from remote repository.

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

I have verified that my SSH key works and is loaded.

$ ssh -v git@bitbucket.org
...
...
debug1: Authentication succeeded (publickey).
Authenticated to bitbucket.org ([18.205.93.1]:22).

I am able to access with HTTPS but not SSH.

$ git ls-remote git@bitbucket.org:matt-roche/genie.git
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
$ git ls-remote https://bitbucket.org/matt-roche/genie.git
1a7f897e338d59af61ac2fc7380ae2b82fbab1cd HEAD
1a7f897e338d59af61ac2fc7380ae2b82fbab1cd refs/heads/master

Additionally, I've tried also removing my SSH key just to check it shows the slightly altered error message.

$ git ls-remote git@bitbucket.org:matt-roche/genie.git
git@bitbucket.org: Permission denied (publickey).
fatal: Could not read from remote repository.

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

As such, I am guessing that this is related to something to do with my configuration in Bitbucket but the config for permissioning is somewhat all over the place.. My "Team" owns all the repos. My team includes my account as an admin. Each repo includes the administrator group as well as explicitly adding my account as an admin (not sure this is needed but it was auto configured).

Would greatly appreciate some help. My setup seems to have spontaneously stopped working in recent times. I had re-added new SSH keys recently and that worked again but once again, it's stopped working overnight. I've been mucking around a bit lately so it could well be that I've accidentally blocked access by mistake but the fact it works for HTTPS but not SSH is conflicting.

Regards,
Matt

1 answer

As mentioned here, https://community.atlassian.com/t5/Bitbucket-questions/could-not-read-from-remote-repository/qaq-p/983015#U1190775

The issue is resolved when connected to VPN. There appears to be some kind of block on my IP address

Suggest an answer

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

Webinar: Dean Leffingwell and Steve Elliot present on SAFe 5.0, come ask Dean and Steve questions!

...steemed Steve Elliot (head of product for Jira Align). Agenda: What’s new or changed in SAFe 5.0: Introduction of OKRs Essential SAFe How to achieve true business a...

120 views 0 1
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