SoureTree seems to choose the first SSH key in Pageant list and attempt to use that with all my repositories. This doesn't work for some which use a different key (the second one in the list).
I'm not sure how to tell SourceTree via the git config to use the second key?
Have you tried to create a /.ssh/config file and add the following:
Host myhostname HostName bitbucket.org IdentityFile ~/.ssh/id_rsa # Default address: firstname.lastname@example.org:accountname/reponame.git # Alias address: git@<Host>:accountname/reponame.git # Usage: git@myhostname:accountname/reponame.git Host somethingelse HostName bitbucket.org IdentityFile /var/www/id_rsa.something # Default address: email@example.com:accountname/reponame2.git # Alias address: git@<Host>:accountname/reponame2.git # Usage: git@somethingelse:accountname/reponame2.git
Please, notice that in the sample above I have created two ssh key-pairs and I have saved them in different locations.
Host myhostname -> git@myhostname:accountname/reponame.git
Supported Platforms macOS Sourcetree has a lot to offer and, like many developer tools, finding and using it all can be a challenge, especially for a new user. Everyone might not love ...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
We're bringing product updates and pro tips on teamwork to ten cities around the world.Save your spot