dlech / KeeAgent

ssh agent plugin for KeePass 2.x
http://lechnology.com/software/keeagent
Other
522 stars 35 forks source link

Document WSL2 workaround #339

Closed dlech closed 1 year ago

dlech commented 2 years ago

The WSL socket option from #321 only works with WSL1 and not WSL2 due to https://github.com/microsoft/WSL/issues/5961.

https://github.com/rupor-github/wsl-ssh-agent#wsl-2-compatibility contains a fairly simple workaround to bridge the Windows OpenSSH socket to WSL2 instead.

strarsis commented 2 years ago

@dlech: Is this guide still applicable? https://gist.github.com/strarsis/e533f4bca5ae158481bbe53185848d49

dlech commented 2 years ago

It says that it was just updated this month, so I would guess so.

dlech commented 1 year ago

Even simpler workaround: just type ssh-add.exe instead of ssh-add and ssh.exe instead of ssh to use Windows OpenSSH.

If you don't want to type .exe or need it for something scripted, then create symlinks from /mnt/c/Windows/System32/OpenSSH/*.exe to /usr/local/bin/* where * is any of ssh, ssh-add, scp, sftp.