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_SSH
andGIT_SSH_COMMAND
environment 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_SSH
and VSCode picks this up but gives an error that it can’t spawnplink.exe
due 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.