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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.