I stating work on an existing project and my Atlassian account has have been added as an Admin to the repository and my SSH public key from my development laptop has also been added to the Access Keys list.
I tried to push up a new branch to the repo and receive this error (I've tried from command line and from Sourcetree - same result):-
Unauthorized
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
NB: I have cloned the repo via SSH with no problems so read access is fine...
Any ideas on how to fix this?
Thanks
Hello @06tech,
Welcome to the Atlassian Community!
Access key in the repository provides READ-only access. Could you try adding the public SSH key in the Personal settings of the Bitbucket?
Reference: https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/
I hope this helps.
Kind regards,
Karthick S
Thanks for your reply - when I try and add my SSH key to my account through Personal Settings I get an error:-
Someone has already added that key as an access key to a repository.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @06tech
Currently, it is not possible to add the same SSH key more than once. I believe you have mentioned you have added the SSH key in the repository as an access key. If yes, could you please remove it from the repository and then try adding the SSH Key in the Personal settings of the Bitbucket?
Kindly keep us posted if you face any issues.
Kind regards,
Karthick S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.