dahlbyk/posh-sshell

SSH_AGENT_PID does not correspond to process Id

Opened this issue · 3 comments

System Details

  • posh-sshell version/path: 0.3.1 ~\Documents\WindowsPowerShell\Modules\posh-sshell\0.3.1
  • PowerShell version: 5.1.14393.3053
  • OS: Microsoft Windows NT 10.0.14393.0
  • OpenSSH / Putty version: git version 2.23.0.windows.1

Issue Description

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

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.

If only I knew how to fix it.

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.