It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bitbucket app password login fails

Tarmo Kuuse Oct 28, 2016

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

16 votes
Answer accepted
Tarmo Kuuse Oct 28, 2016

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

Alastair Wilkes Atlassian Team Oct 28, 2016

Sure thing smile

Tarique Khan Jul 08, 2018

same issue for me, resolved.

0 votes
Alastair Wilkes Atlassian Team Oct 28, 2016

Hi Tarmo,

What value are you using for apppwd_user?

Alastair

0 votes
Karma Tsering Lama Jan 02, 2018

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
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Published in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder

...ipe.sh :  #!/bin/bash source "$(dirname "$0")/common.sh" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

1,732 views 1 18
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you