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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,930
Community Members
 
Community Events
176
Community Groups

How to Clone private repo in VS Code with account passwords no longer supported

I'm attempting to clone a private repo in VS code. I am logged into Bitbucket. When I click on Clone Repository. It asks my for the URL which I enter. After selecting the location it asks me for my password. I then get the error:

Failed to authenticate to git remote:
remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
remote: https://bitbucket.org/account/settings/app-passwords/
fatal: Authentication failed for 'https://bitbucket.org/XXXXXXXXXXXXX
 
I have setup an App password, but I don't see the opportuntiy anywhere to enter this when trying to clone.

What do I need to do?

 

2 answers

0 votes

Hi Chris,

The app password should be used in the place of a password. The place to enter it is when you get a prompt to enter your password during a clone.

If you no longer get prompted to enter a password when you try to clone, it is possible that a credential manager is used in your machine that has saved the password you used the first time.

You can check if a credential helper is used a) for all users in your system and b) only for your user by running the commands:

git config --system credential.helper
git config --global credential.helper

If a credential helper is used and it has saved credentials for bitbucket.org, you will need to clear them in order to get prompted for a password the next time you clone.

Another option is to use SSH, as Aron suggested. When using SSH, authentication is done with the SSH keys instead of a username and app password. However, if you prefer HTTPS, the app password should be used in the place of a password when you clone/pull/push.

Kind regards,
Theodora

0 votes

I am not familiar with VS code, but it general I think connecting to Bitbucket over SSH would be a tool-independent way to work with your repositories.

It requires some efforts, but those should only be done once, then you can forget about it and it is secure.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Site Admin
TAGS

Atlassian Community Events