SourceTree 2.4 failing to use ssh OpenSSH public key with GitLab repo on OSX El Capitan, prompting for git user password.

Guy Heckman December 16, 2016

Title says it all. No changes on my end except SourceTree updated yesterday. MacPorts installed command line git works fine with same repo.

Where can I specify which key to use, SourceTree is not picking it up from my environment. 

1 answer

1 vote
Guy Heckman December 16, 2016

Solved.

I'm short on the hows and whats but the why was my OpenSSH identity had been removed from my keychain, I can't say with 100% certainty but I believe and evidence suggests this was related to an OSX update that installed while I was logged in.

The reason it kept working in the Git CLI was, that it wasn't - I was getting prompted for my passphrase when pushing/pulling and didn't think about it being out of the ordinary since I'm used to that in my Linux terminals.

For anyone encountering this, add your OpenSSH private key to your keychain by opening a terminal and entering the following.

ssh-add -k [path_to_private_key]

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events