I can not make sourcetree work with the ssh key that i have in my yubikey. Does anybody know how can i fix it?
Thank you.
P.D: I have tried different recommendations that i found on the internet, but they have not worked. I get to connect for example to github using ssh on terminal and works fine, but Sourcetree does not work.
I'm working on macOS Mojave
This the configuration that Sourcetree put inside .ssh/config
# --- Sourcetree Generated ---
Host *******-GitHub
HostName github.com
User ******
PreferredAuthentications publickey
IdentityFile /Users/*******/.ssh/GitHub
UseKeychain yes
AddKeysToAgent yes
# ----------------------------
# --- Sourcetree Generated ---
Host ******-GitLab
HostName GitLab
User *******
PreferredAuthentications publickey
IdentityFile /Users/******/.ssh/GitLab
UseKeychain yes
AddKeysToAgent yes
# ----------------------------
I have tried to delete this file but it does not work.
I have also tried to modify the keys that refer to the IdentityFile by putting the (Yubikey) public key inside but nothing.
Finally I have modified the github and gitlab accounts that I have associated with sourcetree so that the same program will not generate a ssh key but it does not work either because it does not recognize the ssh private key of the yubikey.
The strange thing is that if the connection is made from terminal using ssh git@github.com it works perfectly.