-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use wsl2 agent socket #3
Comments
@tommy2d can you check that If thats installed and the socket is created properly, it could be that the socket id created by nCryptAgent is already in use by something else? Are you running any other tools that have WSL2 communication interop? If you are try quitting them and re-trying. |
Same issue here and I do have socat installed (and it is in fact running after executing the snippet). |
I'll put out a new version later today which will output logs into the appdata directory to help debug this... |
Same here: socat is in fact installed & running and was also used by my previous wsl2 solution. I'll try your updated version later today. |
Here is the workaround until I add some checks and an installer: Create
and install it by opening the .reg file. Alternatively create the registry entry by hand. |
Ha, I thought that was it based on the docs. The registry entry does indeed work as expected. |
I'm afraid it is still not working for me, even after importing the .reg. Is there anything else I can do to help? |
When I run socat in foreground and I execute ssh-add -L, it complains like this: socat UNIX-LISTEN:$SSH_AUTH_SOCK,fork VSOCK-CONNECT:2:0x22223333 |
Fixed it: my default wsl2 VM was apparently running an older version of Ubuntu, bundled with an older version of socat: Working: Not working We should probably update the shell scripts to verify that socat is compatible. |
This should be fixed in v0.0.5, but you will need to update your WSL shell script since I changed the socket identifier to avoid conflicts with other software. |
I previously used the native OpenSSH agent in windows 11 which was forwarded to WSL2, which worked. I'm now trying your solution, and thus I disabled the SSH agent service in windows. Native ssh through powershell is working fine. I can't seem to get WSL2 to work, even though the env vars seem to be alright and the socket is created in /tmp.
ssh-add -L yields the following the error:
error fetching identities: communication with agent failed
How should I debug this?
The text was updated successfully, but these errors were encountered: