I tried setting up two-factor authentication on my Bitbucket account and it said I needed to configure SSH. So I did but I'm having problems getting it to work with Sourcetree (2.7.4 174 for macOS 10.13.4 17E202, git version 2.15.1 Apple Git-101)
It seemed to work initially, but when I try to refresh remote repositories in Sourcetree it says:
(note with SSH there is no spot for an app password…)
And when I try to edit my account authentication settings in Sourcetree and click save, now it always says:
Edit:
I just tried switching back to HTTPS, putting in a new app password from Bitbucket, and then saving, then going back to SSH and then so far it seems to work… but that doesn't really make much sense.
I'm guessing that the first time you saved the account with ssh, the credentials (refresh and auth tokens) were not stored properly in keychain and the encrypted file. But, this time when you did that, it has saved properly. You can verify that by checking if your keychain has two items "Bitbucket Credentials" and "bitbucket.org Access key for <your_user_name>"
I see the latter only. I don't see anything matching "Bitbucket Credentials" exactly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'd recommend removing the account once and adding it back with SSH + OAuth and checking if you get both the keychain items added. That'll ensure everything you need to get this running with OAuth is present.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.