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

Problem with two step verification

kvantitativeAbj March 29, 2022

I have enabled bitbucket two step verification, using the Authy app. That part seems to work fine since I can log into bitbucket.org using the following procedure.

1. open bitbucket.org in browser

2. select 'login'

3. enter account *email address*

4. enter password

5. enter 6 digit code from Authy.

To test things out I have created a test repository. From this repository I can copy the git clone command that looks as:

git clone https://Username@bitbucket.org/workspace/test.git

Where user is the Username is the one listed on https://bitbucket.org/account/settings/ and workspace is the workspace of the repository. When viewing the repository in the browser, the address is https://bitbucket.org/workspace/test/src/master/.

My understanding is the login details for the git command prompt is kept in windows credentials. I have tried to add these using the following windows admin command:

cmdkey.exe /add:bitbucket.org /user:Username /pass:password

Where password is the one used in the two way verification, used to log in to bitbucket.org with the browser.

After updating windows credentials the system respond with the 'atlassian log in to your account' dialog when giving the git clone command. However, it seems like the system select the legacy logon method since it does not ask for two way verificaiton but instead give the message:

$git clone https://Username@bitbucket.org/workspace/test.git
Cloning into 'test'...
remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.

...

fatal: Authentication failed for 'https://Username@bitbucket.org/workspace/test.git'

I am thinking that the problem is with the windows credentials, but could not find any detailed description of how to configure it.

Any suggestion is appreciated.

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events