Bitbucket app password login fails

Hi!

I seem to be having trouble authenticating to my Bitbucket repo using App Passwords.

Here's what I did (following https://blog.bitbucket.org/2016/06/06/app-passwords-bitbucket-cloud/)

  1. Enabled 2-factor authentication
  2. Created a test repo with some dummy data
  3. Created an App Password, granted every permission possible
  4. Tried login via git command-line client:
    git clone https://apppwd_user:apppwd_pass@bitbucket.org/tarmokuuse/testrepo0.git

Login fails with the following message

Cloning into 'Testrepo0'...
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.
fatal: Authentication failed for 'https://apppwd_user:apppwd_pass@bitbucket.org/tarmokuuse/Testrepo0.git/'

Can anyone point out what's wrong here? Regarding the hint about the account password, I am using the Atlassian account which has a password set. I don't believe it's possible to have it any other way...

FYI: I am, in fact, trying to enable submodules in my Bitbucket Pipelines, which seems to require such hacks to work: https://answers.atlassian.com/questions/39445805. Login fails there in exactly the same way.

3 answers

1 accepted

11 votes
Accepted answer

Oh, I'm not supposed to use the name of the App Password as the login user, but rather my own user name. That's unexpected.

Thanks for the hints smile

Sure thing smile

same issue for me, resolved.

0 votes

Hi Tarmo,

What value are you using for apppwd_user?

Alastair

I had an similar issue. In the url make sure you are using ur id and the the system will ask for your password. Problem solved

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

433 views 6 9
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you