Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to clone bitbucket repo?

Zainur Rasyid Rosli
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!
April 22, 2026

I already have permission to access repo, but unfortunately I can clone the repo. Error return  as per below:

 

 

fatal: Could not read from remote repository.

 

Please make sure you have the correct access rights

and the repository exists.




2 answers

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 23, 2026

Hi @Zainur Rasyid Rosli 

May I know which protocol you're using to authenticate (ie HTTPS/SSH)? The error message could be one of two things:

  • Your account does not have read access to the repository that you are trying to clone - in which case you'd need to ask the admin to grant you this access first
  • Your account has access, but your authentication method is incorrectly configured (SSH key/HTTPS API token)

The error message implies SSH, we have troubleshooting articles for this below - the most common reason you may be receiving this is because of a key mismatch - in which case it's easiest to generate fresh SSH keys and add this to your user account:

Otherwise, if HTTPS - it could be the way you've configured your API token.

 

To start using API tokens with Bitbucket Cloud - you'll need to create the API token and specify the scope - this is mentioned in our deprecation documentation:

  1. Click the gear cog icon, select Atlassian Account settings > Security tab > Create and manage API Tokens

  2. Click Create API token with scopes and select Bitbucket Cloud

  3. If you want to be able to clone/push/pull to the repository - you'll need to tick both read:repository:bitbucket and write:repository:bitbucket - clone only would just be read:repository:bitbucket. More information on scopes can be found in our API scopes documentation.

  4. Perform the clone using the API token by executing either of the commands below (if using the first command - you can find your username by clicking the gear cog icon and selecting Personal Bitbucket Settings - it's visible under the Bitbucket Profile Settings heading):

If the above does not help you resolve the issue - please raise a ticket with our support team by selecting Technical Issues & Bugs > Bitbucket, as I can see you are a member of a paid workspace:

If you encounter issues raising a ticket - please let me know your timezone and I will raise one on your behalf with the team who operates during your working hours.

Cheers!

- Ben (Bitbucket Cloud Support)

0 votes
Zainur Rasyid Rosli
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!
April 22, 2026

Cant clone the repo

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events