Giter VIP home page Giter VIP logo

Comments (5)

RAnders00 avatar RAnders00 commented on June 4, 2024 1

I've not gotten it to work even once, so yes, always. Thank you for taking the time to look into this. Let me know if you need any more details.

from omnisshagent.

RAnders00 avatar RAnders00 commented on June 4, 2024 1

While tinkering around, I was able to find out what went wrong:

In omni-socat/ubuntu-bash.setup.sh, I replaced the socat start line with this to get the output:

(setsid socat UNIX-LISTEN:$SSH_AUTH_SOCK,fork EXEC:"$OMNISOCATCMD",nofork &) >$HOME/omni-socat/socat-output 2>&1

Which shows the following output:

2024/01/07 15:35:04 socat[89] E exactly 2 addresses required (there are 0); use option "-h" for help

Which, I found out, is caused by me not having a .ssh directory.

mkdir $HOME/.ssh

fixes everything.

from omnisshagent.

masahide avatar masahide commented on June 4, 2024

Sorry for the late reply.
Does this error always occur?

from omnisshagent.

masahide avatar masahide commented on June 4, 2024

To isolate the cause, could you try replacing omni-socat with npiperelay to see if it works? (npiperelay is a software similar to omni-socat that can proxy named-pipes via socat.)
Please perform the following operations on WSL2.

# download npiperelay_windows_amd64
$ wget https://github.com/jstarks/npiperelay/releases/download/v0.1.0/npiperelay_windows_amd64.zip
$ unzip npiperelay_windows_amd64.zip

$ ps axuw|grep socat
masahide 99065  0.0  0.0   6976  1832 ?        Ss   19:35   0:00 socat UNIX-LISTEN:/home/masahide/.ssh/agent.sock,fork EXEC:/home/masahide/omni-socat/omni-socat.exe -debug,nofork
masahide 99107  0.0  0.0   8172   660 pts/1    S+   19:36   0:00 grep --color=auto socat
# kill omni-socat.exe
$  killall socat

# start $HOME/npiperelay.exe
$ setsid socat UNIX-LISTEN:$SSH_AUTH_SOCK,fork EXEC:"$HOME/npiperelay.exe -ei -s //./pipe/openssh-ssh-agent",nofork
$ ps axuw|grep npi
masahide 98717  0.0  0.0   6976  1836 ?        Ss   19:29   0:00 socat UNIX-LISTEN:/home/masahide/.ssh/agent.sock,fork EXEC:/home/masahide/npiperelay.exe -ei -s //./pipe/openssh-ssh-agent,nofork
masahide 98740  0.0  0.0   8172   724 pts/1    S+   19:29   0:00 grep --color=auto npi

# list ssh agent keys
$ ssh-add -l
256 SHA256:...............

from omnisshagent.

masahide avatar masahide commented on June 4, 2024

@RAnders00
Thank you for the pull request.

from omnisshagent.

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.