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?
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.