I have serious problems signing in to SourceTree.
The login popup all the time when I use the program and the login must be re-entered.
I tried to solve this in several ways, including trying to switch from HTTPS to SSH, but I did not manage to fix SSH for SourceTree.
How can the failed login problem be resolved?
This fix the failed login problem.
In order for it to be possible to switch to SSH, it must first be set up.
Therefore, this is a guide for those who either have SourceTree login problems or need help with connect SourceTree to SSH.
To generate an SSH Key with SourceTree:
Folder should now contain:
.ppk is the private key and .pub is the public key. The public key is stored on remote server, showing later for Bitbucket.
SSH key should look like this:

Run the following:
eval $(ssh-agent)
The output should give you a process id back, something like, Agent pid 1234
Run the following to add your generated private key "id_rsa":
ssh-add ~/.ssh/id_rsa
If successful, the output should say that an identity has been created.
Add ssh://, after you’ve entered the complete url
https://<your_username>@bitbucket.org/<account_name>/<repo_name>.git
ssh://<your_username>@bitbucket.org/<account_name>/<repo_name>.git
SourceTree will try to validate your input
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With