2

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.
jschuss
  • 645
  • 1
  • 8
  • 21
  • Check if it is related to https://stackoverflow.com/questions/10107611/password-issue-in-cloning-git-repository-from-bitbucket – Anurag Sharma Jan 12 '18 at 05:21
  • bitbucket is a premium git platform and is more secure. Bitbucket will ask you to enter password for each and every activities like pushing code, cloning,etc – skysoft999 Jan 12 '18 at 05:23
  • Perfect. can’t believe I didn’t come across that on my search thanks! – jschuss Jan 12 '18 at 05:23

2 Answers2

3

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

Waaheeda
  • 394
  • 3
  • 14
1

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.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • Thanks for the suggestion. After a lot of trial and error I managed by changing my Atlassian password credentials and it worked. Appreciate the help though – jschuss Jan 13 '18 at 00:53
  • @jschuss Great! I have included your comment in the answer for more visibility. Did your old password contain special characters? (space, `%`, `_`, ...) – VonC Jan 13 '18 at 07:00
  • Thanks! 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. – jschuss Jan 15 '18 at 06:04
  • @jschuss Thank you for this feedback: I have included your comment in the answer for more visibility. – VonC Jan 15 '18 at 07:06