Reputation: 3155
I would like to connect to my repository using an SSH key instead of a username & password.
However when I try to do this in TortoiseGit I can not enter the key because the "Load Putty Key" is disabled. Can anyone point out why this is happening and how I can enable the field?
Upvotes: 32
Views: 36337
Reputation: 8253
Easy way to fix this issue, please follow the picture. thanks
Upvotes: 2
Reputation: 761
In TortoiseGit settings go to Network. In field SSH Client, specify the path to TortoiseGitPLink
e.g.:
C:\Program Files\TortoiseGit\bin\TortoiseGitPLink.exe
Upvotes: 62
Reputation: 691
Setting correct path to TortoiseGitPlink.exe
for SSH client:
in Settings->Network
should fix the problem. Something like:
C:\Program Files\TortoiseGit\bin\TortoiseGitPlink.exe
BUT, in some cases the new path is not saved for some reason!
As mentioned in the comments, sometimes (in my case TortoiseGit 2.5.0.0
) the setting was not being applied. Clicking on OK
or Apply
was not producing any error, but when closing and opening the Settings
again, the old path was there.
In order to workaround this, check also Enable Proxy Server
in the same Network
menu (do not provide any proxy settings). After this the window will close on OK
press, and when reopened, Enable Proxy Server
will be unchecked, but the new path will be saved.
Upvotes: 8
Reputation: 97280
SSH and key based authentification is a job of SSH-client (plink) and key-agent (pageant)
Upvotes: 4