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

cannot push to repo

sagism September 18, 2023

I just created a private repo.

I cloned it to my mac, (created new ssh key and added it to the repo).

I can pull from it.

But I cannot push:

% ssh -T git@bitbucket.org
authenticated via ssh key.

You can use git to connect to Bitbucket. Shell access is disabled

% git push
Unauthorized
fatal: Could not read from remote repository.

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

 

Any suggestion?

1 answer

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

Hi @sagism!

Repository Access keys provide read-only access to a repo. They are mainly used when working with CI tools that only need to clone repos in order to run builds.

What you can do is remove this key from the repo's Access keys and add it to your account instead. You can find steps here, section Provide Bitbucket Cloud with your public key:

An SSH key added to your account will give you read-write access to all repos your account has access to. Please note that you will need to remove it from the repo first because an SSH key cannot be associated with an account and a repo at the same time.

Please feel free to let me know how it goes and if you have any questions.

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