jschuss
jschuss

Reputation: 655

Bitbucket asking for password to clone repo

I am cloning a repo on bitbucket from a new computer, but it's asking me for a password. My bitbucket password does not work. Cloning repo's on GitHub works fine. Any advice would be greatly appreciated!

This is the error I keep seeing after using my Bitbucket password.

remote: Invalid username or password. If you log in via a third party service you must ensure you have an account password set in your account profile.

Upvotes: 3

Views: 19817

Answers (2)

Vahida Havaldar
Vahida Havaldar

Reputation: 524

For anyone trying to clone for first time please follow following steps to generate password and store it somewhere so that you can access it later on whenever it's required. enter image description here

Upvotes: 10

VonC
VonC

Reputation: 1329452

It depends on your protocol (https or ssh).

  • SSH should not ask you anything unless you have assciated a passphrase to your private key in ~/.ssh/id_rsa
  • HTTPS should allow you to cache your credentials with a credential manager: see "Permanently authenticating with Git repositories".
    Check what git config --global credential.helper returns.

The OP jschuss adds in the comments:

After a lot of trial and error I managed by changing my Atlassian password credentials and it worked

It is possible the previous password had special characters, that would need to be percent encoded when cached.
However, the OP jschuss confirms in the comments it might be a current bug:

No, my old password did not contain any special characters.
But the act of setting a new password/ waiting a few minutes/ using a new terminal window was suggested to me by the support team after I had done it already, so it seems to be something people are dealing with lately.

Upvotes: 1

Related Questions