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

Unauthorized fatal: Could not read from remote repository.

nermelthisiscrowd
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 7, 2023

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

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 10, 2023

Hi @nermelthisiscrowd and welcome to the community!

This error usually shows when using SSH to clone, pull or push to a certain repo and the root cause is not always the same. We would need some additional info to be able to better help you.

Could you please let us know the following:

1. What operation gives you this error? Is it a clone, a pull, or a push?

2. Have you set up SSH keys for Bitbucket Cloud on this machine?

If so, where have you added the public key?

3. Can you update or create your SSH configuration file (~/.ssh/config) with the following content:

Host bitbucket.org
    AddKeysToAgent yes
    IdentityFile ~/.ssh/{ssh-key-name}

where {ssh-key-name} replace with the name of your private SSH key, whose public key you have uploaded to Bitbucket. Then, try the same operation that was failing and let me know if it works.

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS
AUG Leaders

Atlassian Community Events