To enable vscode git extension to use pageant-served ssh certificates…
- download and install PuTTY
- find the installed path of
plink.exe- usuallyC:\Program Files\PuTTY\plink.exe - set
GIT_SSHandGIT_SSH_COMMANDenvironment variables to this path:
GIT_SSH="C:\Program Files\PuTTY\plink.exe"
GIT_SSH_COMMAND="C:\Program Files\PuTTY\plink.exe"
Most programs use
GIT_SSHand VSCode picks this up but gives an error that it can’t spawnplink.exedue to permission denied.To get VSCode working, also set
GIT_SSH_COMMAND
If the error
plink: unknown option "-o"occurs, see Fix git plink unknown option error.