Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

I made a SSH key but adding this key to bitbucket says it is an invalid key


After trying to push in Sourcetree I get errors

git -c diff.mnemonicprefix=false -c core.quotepath=false --no-optional-locks push -v --tags origin master:master
remote: Bitbucket Cloud recently stopped supporting account passwords for Git authentication.
remote: See our community post for more details:
remote: App passwords are recommended for most use cases and can be created in your Personal settings:
fatal: Authentication failed for ''

1 answer

0 votes
Ben Atlassian Team May 18, 2022


The error you have mentioned indicates that SourceTree is still trying to use HTTPS for authentication, rather than SSH. This is why you are receiving an error related to App Passwords.

Please see the following article for Sourcetree if you would like to continue using App Password:

If you would like to make use of SSH in Sourcetree, there is an article here which explains the process for Sourcetree as well: 

There is a chance your GIT config still has old references to HTTPS present, I would suggest clearing these and following the articles above.

Hope this helps.


- Ben (Bitbucket Cloud Support)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Sourcetree

Bug Fix: Sourcetree for Windows authentication error when updating to app password

Hello Sourcetree users!!! With the recent removal of Bitbucket Cloud account passwords for app passwords (please see our Bitbucket Cloud community post for details on why we made this change for se...

61,052 views 127 27
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