I have one windows service which will use plink.exe
for SSH connection and I found that Plink cannot find the running Pageant.
Here is the steps I have done so far.
Note: If I run Windows service as console application with that user, everything is working fine.
As @Eugene point out, it is Session 0 Isolation.
I managed to solve the issue by not using agent but directly passed the private key and password to plink.exe
. By doing that, I'm able to run without using pageant
.
To start plink.exe
without agent;
plink.exe -noagent -i private_key.ppk -pw mypassword -P 1234 [email protected]