Public key issue with command line in sourceTree (git )

  1. Set SSH Key to a PuTTY private key (.ppk) and set SSH Client to PuTTY / Plink
  2. Set an environment variable GIT_SSH to the path of plink.exe, for example C:\Program Files (x86)\Atlassian\SourceTree\tools\putty\plink.exe

Of course you could have a separate, global OpenSSH key in %HOMEPATH%\.ssh\id_rsa but then you would lose the advantage of SourceTree loading the correct key automatically.

By the way, I can confirm that neither of these work:

  • Setting SSH Key to an OpenSSH private key and using OpenSSH as SSH Client
  • Setting SSH Key to a PuTTY private key and using PuTTY / Plink as SSH Client