Reputation: 2188
I am using two different computers which access a git repository that is in a common network path. I am authenticating via pageant / TortoiseGitplink. My SSH private key is saved under C:\Users\%USERNAME%\private.ppk
.
At the moment, each time I switch computers, I need to re-set the puttykeyfile to the other users home directory. I want to automatically load the puttykeyfile from the HOME directory on both machines.
I already tried to set up an environment variable on each machine with HOME=c:\users\userX
and added puttykeyfile = $HOME\\private.ppk
or puttykeyfile = %HOME%\\private.ppk
to the .git\config
, however, each time I get Unable to open File
from Pageant.
If I run pageant %HOME%\private.ppk
from the command line it works like a charm!
How can I make TortoiseGitPLink find the private.ppk
automatically within the home dir?
Upvotes: 0
Views: 482
Reputation: 34002
TortoiseGit does not support environment variables for the putty key values (as of 2.11.0).
Possible workarounds could be
%HOME%\.gitconfig
),Upvotes: 1