Code Monkey home page Code Monkey logo

Comments (6)

rupor-github avatar rupor-github commented on June 1, 2024

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.

Firehawke avatar Firehawke commented on June 1, 2024

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.

rupor-github avatar rupor-github commented on June 1, 2024

In my case no such lines at all... How about using netstat -a instead?

from wsl-ssh-agent.

Firehawke avatar Firehawke commented on June 1, 2024

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.

rupor-github avatar rupor-github commented on June 1, 2024

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.

Firehawke avatar Firehawke commented on June 1, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.