Comments (6)
I am not sure I understand your question - I am on W10 19041.207 and socat/npiperelay combo works perfectly. What exactly are you asking?
from wsl-ssh-agent.
Just erased a whole bunch of debug stuff I was going to include. Seems like it's a problem with the kernel provided by Microsoft, as ss -a
spams a lot of Cannot open netlink socket: Protocol not supported
messages. That's probably killing socat's ability to talk to npiperelay.
If I get this figured out, I'll report back so you can add it to the instructions since it definitely seems broken by whatever Microsoft's new default is.
from wsl-ssh-agent.
In my case no such lines at all... How about using netstat -a
instead?
from wsl-ssh-agent.
Looks like the real problem is that it migrated it back down to WSL1 when I did a distro reset, which is counter-intuitive. I'd checked it before doing the reset and confirmed it was on 2, didn't think to look again after the reset. If this fixes it, I'll suggest adding that error message as a note you should do wsl.exe -l -all -v
to make sure you're REALLY on WSL2.
I'm almost certain it'll work after I force it to upgrade.
from wsl-ssh-agent.
I will certainly mention this in the readme :) My .zshrc has a check:
if [ -z "${ISWSL}" ]; then
if [ $(uname -a | grep -c "Microsoft") -eq 1 ]; then
export ISWSL=1 # WSL 1
elif [ $(uname -a | grep -c "microsoft") -eq 1 ]; then
export ISWSL=2 # WSL 2
else
export ISWSL=0
fi
fi
It is ugly but it is works. Depending on the result I will either use socket provided by wsl-ssh-agent.exe from Windows end (WSL1) or use socat/npiperelay.exe (WSL2). This way I do not have to remember anything.
from wsl-ssh-agent.
Okay, just wanted to let you know that after rebuilding my Debian install (the upgrade actually trashed it somehow on the first try, forcing me to remove it and wsl --import the tar.gz backup I make every Friday) I managed to get everything working finally. Also, thanks for the detection method-- I've got my .zshrc in a private Git repo and use it on multiple machines, and it'll be helpful to set things up that way.
All in all, half user error, half "It's broken in a very Microsoft way" but it's now working.
from wsl-ssh-agent.
Related Issues (20)
- Why "gpg" in file name? HOT 4
- Feature request: disable clipboard server? HOT 1
- npiperelay.exe doesn't work for WSL 2 starting from Windows 11 22000.318 HOT 2
- Pass name of process? HOT 3
- "communication with agent failed" when trying to connect using SSH in Arch (WSL 2) HOT 10
- wsl-ssh-agent-gui.exe complains of lack of ~/.gclpr directory even if gclpr is not being used HOT 1
- Connection might not work after update to Ubuntu 22.04 HOT 2
- How to use correct key when I have multiple for github.com HOT 4
- 'Error connecting to agent' on one PC but working correctly on another with identical setup HOT 2
- Issues using WSL2 with Ubuntu 22.04 HOT 4
- WSL2 and Windows 11 ssh not working HOT 4
- Chocolatey package possible? HOT 2
- Is this possible with a VM and a samba share? HOT 1
- [Docs] Put `npiperelay.exe` onto Windows filesystem to fix delays HOT 1
- [Question] `npiperelay.exe` build HOT 3
- WSL2 won't get keys despite agent has em HOT 7
- SSH agent forwarding to WSL2 HOT 6
- Problem with wsl2 and systemd HOT 1
- `wsl-ssh-agent-relay` relies on systemd HOT 1
- Following Instruction for npiperelay results in invalid ELF header HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wsl-ssh-agent.