dahlbyk / posh-sshell

PowerShell helpers for SSH (previously part of posh-git.)
MIT License
143 stars 8 forks source link

SSH_AGENT_PID does not correspond to process Id #21

Open technic opened 5 years ago

technic commented 5 years ago

System Details

Issue Description

I have ssh-agent from git for windows. Since version 2.22 SSH_AGENT_PID does not correspond to process Id (https://github.com/git-for-windows/git/issues/2274). Other method to get process Id is required.

JeremySkinner commented 5 years ago

I don't personally have time to work on this at the moment (I use Linux at my current job so not using git for windows anymore), but will happily accept a pull request if you (or someone else) wants to take a look at it.

technic commented 5 years ago

If only I knew how to fix it.

JeremySkinner commented 5 years ago

To be honest these days you’re probably better off using the OpenSSH agent that ships with Windows 10 ad this automatically handles starting the agent for you as a windows service. Much easier to work with than the one that comes with git for windows as you don’t have to deal with any auto start scripts.