There is something nice to do with npiperelay, if you are using the native OpenSSH ssh-agent in Windows 10.
Add this to ~/.bash_profile in WSL2 or WSL:
export SSH_AUTH_SOCK=/tmp/ssh-agent-$$.tmp
exec socat \
UNIX-LISTEN:${SSH_AUTH_SOCK},umask=007,fork \
EXEC:'npiperelay.exe -ep -s //./pipe/openssh-ssh-agent',nofork &
That way you can use the same agent in PowerShell, WSL2 and WSL, which seems like a nice thing to do, and may be a good enough reason to stop using PuTTY+Pageant.
Sorry to report this as an issue. I couldn't think of a better way of proposing this addition to the docs.
There is something nice to do with
npiperelay, if you are using the native OpenSSH ssh-agent in Windows 10.Add this to
~/.bash_profilein WSL2 or WSL:That way you can use the same agent in PowerShell, WSL2 and WSL, which seems like a nice thing to do, and may be a good enough reason to stop using PuTTY+Pageant.
Sorry to report this as an issue. I couldn't think of a better way of proposing this addition to the docs.