This rings a bell. I use KeePass, but not KeeAgent (looks interesting - might try myself), but PuTTYs pageant instead.
Think they have a better method now, but there was a time when VS Code required a hack involving a tool such as wsl-ssh-pageant in order to get pageant (which I don’t think uses SSH_AUTH_SOCK
) working with VS Code to access github and remote ssh repos et al.
Have a little .bat
I run before pageant (OpenSSH method):
powershell -WindowStyle Hidden -Command Start-Process -NoNewWindow 'C:\bin\wsl-ssh-pageant-amd64.exe' '--winssh ssh-pageant'
Perhaps this may work with KeeAgent?
Edit: In addition to the above command, the SSH_AUTH_SOCK env var needs to be set as per instructions, but dunno if this’d work beyond Pageant with that specific tool.
However, it seems KeeAgent supports both WSL and OpenSSH bridging and could already be built in? Only WSL1 mentions SSH_AUTH_SOCK
though.