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

Authentication failed form Bitbucket cloud

MDAUTOMATISERING April 25, 2022

I use Sourcetree and bitbucket.

I created an SSH key and installed it in Bitbucket.

Trying to push I stille get an authentication error:

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin master:master
Logon failed, use ctrl+c to cancel basic credential prompt.
remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details: https://atlassian.community/t5/x/x/ba-p/1948231
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
remote: https://bitbucket.org/account/settings/app-passwords/
fatal: Authentication failed for 'https://MYNAME@bitbucket.org/MYNAME/amsys-xe10.git/'

 


Pushing to https://MYNAME@bitbucket.org/MYNAME/Source.git
Completed with errors, see above.

 

 

How to solve this?

1 answer

0 votes
Ben
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 26, 2022

G'day!

Based on the output you have provided, it appears that you still have HTTPS included in your gitconfig for the remote upstream repository.

If you are intending on using HTTPS, you will need to configure an App Password, then update your remote URL to include this App Password:

git remote set-url origin https://USERNAME:APP_PASSWORD@bitbucket.org/username/reposlug.git

Else, if you are wishing to use SSH instead to clone/push/pull, please follow our documentation here:
https://support.atlassian.com/bitbucket-cloud/docs/set-up-an-ssh-key/

Cheers!

- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events