ardevd / gitwrap

Windows Wrapper for Linux git executable
MIT License
77 stars 9 forks source link

Support WSL-Pageant or Pageant forwarding. #22

Open ruifung opened 6 years ago

ruifung commented 6 years ago

As git is heavily reliant on SSH keys, it would be nice if gitwrap would be able to support WSL-Pageant (https://github.com/vuori/weasel-pageant), or equivalent function to supporting pageant.

WSL-Pageant works by inserting a snippet in .bashrc to start the ssh-ageant forwarder, however this doesn't appear to work with gitwrap leaving it of limited utility to me as my ssh keys are stored and managed with a pageant compatible agent (keepass w/ keeageant).

So it would be nice if this supported pageant forwarding from the WSL side.

ardevd commented 6 years ago

Thanks for suggesting this @ruifung. I need to look into WSL-Pageant and see if I can figure out a way to integrate with it.

ruifung commented 6 years ago

that, or you could create an af_unix socket from the windows side and pass it as ssh auth sock?

i believe wsl supports some form of unix sockets now right? In addition WSLENV can be used to pass the ssh_auth_sock variable.

ardevd commented 6 years ago

Useful info! I will see what I can figure out. Cheers!