Hi guys,
I have a following config for gitlab repo with team ssh key
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
ignorecase = true
precomposeunicode = true
sshCommand = ssh -i ~/.ssh/id_team_rsa -o IdentitiesOnly=yes -F /dev/null
After update Sourcetree to version 4.2.2 or higher I have the auth error
Version 4.2.1 works pretty well when I rolled it back. Also, the command works in terminal as well
Why it doesn't work for higher version? Are there changes which I didn't find?
Thanks
Welcome to the Atlassian community.
The fix is to switch Sourcetree to Tools > Options > SSH Client and set it to OpenSSH instead of PuTTY/Pageant. This was changed around version 4.2.2, causing core.sshCommand to be ignored.
Alternatively, define the key in ~/.ssh/config directly, which works regardless of Sourcetree's SSH client setting:
Host gitlab.yourcompany.com
IdentityFile ~/.ssh/id_team_rsa
IdentitiesOnly yes
Cheers, Martin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.