You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have been following https://support.atlassian.com/bitbucket-cloud/docs/get-started-with-vs-code/ to connect VSCode with Atlassian bitbucket, but still I cannot push to my git repository. I could clone the repo I am interested in, but cannot push back to it. It keeps telling me "Unauthorised, Please make sure you have the correct access rights and repository exists."
Obviously, I need to do something else or in addition to what is described in this article.
The documentation could very well be improved and detailing how to configure git to push back to bitbucket. Also, cloning the repository from the Atlassian extension does nothing at all to setup things up correctly so I can push back.
Very, very frustrating.
When you clone a repository, the remote url is set on your local clone.
Based on the error you see, I assume you are using SSH, is that correct?
If that's the case, the SSH client on your machine may not be sending the SSH key you have set up for Bitbucket Cloud when you push.
If you have only one Bitbucket Cloud account and you use only one SSH key with Bitbucket Cloud from that machine, you can edit the ~/.ssh/config file on your machine (if it doesn't exist, you need to create it first) and add the following configuration:
where /Users/myUser/.ssh/id_rsa replace with the path and name of your private SSH key, whose public key is uploaded to your Bitbucket account. This will ensure that this key is always offered when you interact via SSH with this repo.