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

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

0 votes

Hi Tarmo,

What value are you using for apppwd_user?

Alastair

0 votes

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 Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

659 views 0 4
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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot