skjerns
skjerns

Reputation: 2188

Use environment variable / HOME for loading puttykeyfile

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!

enter image description here

How can I make TortoiseGitPLink find the private.ppk automatically within the home dir?

Upvotes: 0

Views: 482

Answers (1)

MrTux
MrTux

Reputation: 34002

TortoiseGit does not support environment variables for the putty key values (as of 2.11.0).

Possible workarounds could be

Upvotes: 1

Related Questions