Authentication failed while cloning repository from bit bucket

aicrafter
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 13, 2019

I am unable to clone any repository due to the following error:

"remote: Invalid username or password
fatal: Authentication failed for 'https://<username>@bitbucket.org/<username>/projectb.git/' "

Using one's Bitbucket login password would be too convenient and logical, but it doesn't work for me. And what is my password if I login with Google?

Also, having to type a password for every remote transaction would be rather counterproductive if not annoying. I tried creating a ".netrc" file as directed by a Bitbucket documentation article (https://confluence.atlassian.com/bitbucketserver/permanently-authenticating-with-git-repositories-776639846.html), but it doesn't work. I find the example given, "machine stash1.mycompany.com", to be quite useless, especially in the context of Bitbucket.

1 answer

1 accepted

2 votes
Answer accepted
aicrafter
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 14, 2019

OK, I solved the problem; thanks for reading.

Logging with Google is too convenient, as I suspected. Only Jesus would know what the password might be in that case. So I changed my email to a non-gmail one, and am logging with my new password associated with my new email address .

.netrc does work (thank God), and here is the useful example of file content one needs in order to get the automatic authentication going (i.e., no password typing):

machine bitbucket.org
login <your_user_name-not_email_address>
password <your_password>

I am sure this is laughably obvious and easy for many. However, for a newcomer like me, it took a lot of experimenting (and frustration) due to inadequate (IMHO) documentation and examples.

Hope this is helpful for other newcomers.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events