benpye / wsl-ssh-pageant

A Pageant -> TCP bridge for use with WSL, allowing for Pageant to be used as an ssh-ageant within the WSL environment.
BSD 2-Clause "Simplified" License
612 stars 40 forks source link

Error connecting to agent: No such file or directory #48

Closed ponchofiesta closed 3 years ago

ponchofiesta commented 3 years ago

I'm trying to get this working on Windows 10.

Pageant (by PuTTY-CSC 0.74) is running. wsl-ssh-pageant is running:

λ wsl-ssh-pageant-amd64 -winssh ssh-pagent
2021/03/16 16:24:03 Listening on named pipe: \\.\pipe\ssh-pagent

Then:

λ set SSH_AUTH_SOCK=\\.\pipe\ssh-pageant
λ ssh-add -l
Error connecting to agent: No such file or directory
λ ssh -vvv SOMEHOST
[...]
debug3: unable to connect to pipe \\\\.\\pipe\\ssh-pageant, error: 2
debug1: pubkey_prepare: ssh_get_authentication_socket: No such file or directory
[...]

Am I doing something wrong?

ponchofiesta commented 3 years ago

Sorry, just saw the typo. Works now!