Forums

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

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

wooyoungisbaby
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!
June 19, 2025

Hi! 

I'm having trouble pushing my changes onto my friend's project that we want to work on together. She is the admin/owner of the project on Bitbucket. This is the error message Sourcetree gives:

  • git --no-optional-locks -c color.branch=false -c color.diff=false -c color.status=false -c diff.mnemonicprefix=false -c core.quotepath=false -c credential.helper=sourcetree push -v --tags origin refs/heads/main:refs/heads/main
    Pushing to ssh://bitbucket.org/testingsandeokitinyadventure/sandeokistinyadventure.git name-admin@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. Pushing to ssh://bitbucket.org/testingsandeokitinyadventure/sandeokistinyadventure.git name-admin@Bitbucket.org: Permission denied (publickey). fatal: Could not read from remote repository.

She tried to give me the necessary permissions. She has granted permission to edit the project both my personal email address, which my account on Bitbucket is signed up under, and the redacted email address it lists in the error message, but to no avail. 

It feels like a problem that I don't really know what that email address, name-admin@Bitbucket.org is. I didn't create it knowingly, and I don't know how to access emails sent to it. I'm assuming it's an email that's generated for anyone who has a Bitbucket? Is it a problem that it's an "admin" address since I'm not the admin of this project? 

Don't know if it matters, but I'm on a fully updated Macbook.

2 answers

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 22, 2025

Hi @wooyoungisbaby 

Your username is name-admin - so the username is correct here. You don't have any SSH keys added to your user account, however, so you won't be able to authenticate using SSH.

To fix this - you'll need to copy the contents of your public key found in the ~/.ssh/ folder and add this to your user account in Personal Settings > SSH key. We have an extensive guide for properly setting up SSH below:

Cheers!

- Ben (Bitbucket Cloud Support)

0 votes
Shawn Doyle - ReleaseTEAM
Community Champion
June 19, 2025

Hi @wooyoungisbaby 

 

Looks like you are using ssh, did you set up an ssh key?

Suggest an answer

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

Atlassian Community Events