Hello Bitbucket Community,
I am encountering persistent issues with read and write access to my repositories, despite trying multiple solutions. Here's a detailed description of the problem: I
Background:
personal
and work
.personal
account.work
account has been invited as an admin and has accepted the invitation.Steps Taken:
personal
and work
accounts.work
SSH key to the personal
repository.work
credentials.Current Issues:
work
SSH key and being an admin, I can only read but cannot write to some repositories.Commands and Responses:
Cloning the repository:
git clone git@bitbucket.org:personal_username/repository.git
Attempting to push changes:
GIT_TRACE=1 GIT_CURL_VERBOSE=1 git push origin master:master
Unauthorized fatal: Could not read from remote repository. Please make sure you have the correct access rights.
Additional Information:
git remote -v
shows the correct URLs for fetch and push.git branch -r
lists the branches correctly.personal
and work
accounts have SSH keys listed in their respective settings.What I Have Tried:
personal
and work
account settings.work
account.Despite these efforts, I am still unable to get write access to the repositories from my work
account. I can see the repositories in the dashboard but face issues with cloning and write access.
Request:
Thank you in advance for your assistance.
Best regards,
G'day, @bittnkr
Welcome to the community!
That's an interesting workflow. My question is, when you mention having two accounts, does that mean a Bitbucket account with two different email addresses? If yes, then I believe the reason you are unable to clone the repository was that it was added under the repository level, which only allows for read access and not write.
If you have two different Bitbucket accounts, the solution is to use two separate SSH keys on each account. You can check our guide below on how to manage multiple SSH keys on a single machine specifically if you have two Bitbucket accounts:
Managing multiple Bitbucket user SSH keys on one device
Regards,
Syahrul
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.