I would like to access a SSH service with pass-phrase protected private key in Windows using ssh-agent.exe.
So far I able to utilize ssh-agent.exe by changing environment setting in my home account manually to set an environment variable as follow:
SSH_AUTH_SOCK = %TEMP%\ssh-Co312dEaE\agent.1208
The environment variable should not set in cmd box or else other process accessing ssh.exe may not recognize the environment variable. It has to set in Windows user account.
The above setting need to redo again after a machine reboot.
Is there any good way to automate the launching of ssh-agent and setting the SSH_AUTH_SOCK in the context of native Windows session?