buptczq/WinCryptSSHAgent

Error when starting WinCryptSSHAgent

markfaine opened this issue · 1 comments

I only just installed it and when I try to start it I see this:

image

Image is an error dialog that reads:
open C:\ProgramData\chocolately\lib\wincrypt-sshagent\wincrypt-cygwin.sock: Access is denied.

Update: When attempting to "Open as adminstrator" I see the following:

image

open \\.\pipe\openssh-ssh-agent: Access is denied

This seems to be working now. The steps I took:

  1. Give Users full control of C:\ProgramData\chocolatey\lib\wincrypt-sshagent
  2. WSL .bashrc
if [[ "$(uname -a)" =~ Microsoft ]]; then
    SSH_AUTH_SOCK=/mnt/c/ProgramData/chocolatey/lib/wincrypt-sshagent/tools/wincrypt-wsl.sock
    export SSH_AUTH_SOCK
fi