posh-sshell icon indicating copy to clipboard operation
posh-sshell copied to clipboard

SSH_AGENT_PID does not correspond to process Id

Open technic opened this issue 6 years ago • 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 (https://github.com/git-for-windows/git/issues/2274). Other method to get process Id is required.

technic avatar Sep 14 '19 14:09 technic

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.

JeremySkinner avatar Sep 16 '19 09:09 JeremySkinner

If only I knew how to fix it.

technic avatar Sep 16 '19 09:09 technic

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.

JeremySkinner avatar Sep 16 '19 09:09 JeremySkinner