ITADN

Nice idea missing for SSH_AUTH_SOCK

#16Openrstaveley 创建于 2020-08-02
R
rstaveleycommented
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: ```bash 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.
4 条评论