Comments (5)
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.
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.
Sorry for the late reply.
Does this error always occur?
from omnisshagent.
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.
@RAnders00
Thank you for the pull request.
from omnisshagent.
Related Issues (20)
- Check and embed reference data from glyphs and other webviews
- Can't get WSL2 socket working HOT 10
- Named pipe stops working after a while the system is on HOT 31
- OmniSSHAgent.exe: Please state more precisely the installation and usage of the (WIN) binary HOT 5
- After a system Re-Boot I need to start OmniSSHAgent at least once to make it work again.
- Describe how to set up automatic startup in the README.md
- Keepassxc over pageant_shm integration doesn't seem to work HOT 7
- Populating duplicate tray entries HOT 5
- gpg-agent support HOT 2
- Stopped working in windows 11 HOT 3
- ecdsa-sk and ed25519-sk support HOT 8
- No using asyncIO or Overlapped Results. HOT 3
- ubuntu-bash.setup.sh improvements HOT 2
- 1Password mode not working on boot HOT 1
- omni-socat.exe cannot run when placed in the WSL filesystem HOT 3
- Prevention of duplicate launch
- Cannot retrieve comment information for private keys in OpenSSH format
- Benchmarking the performance of agent forwarding
- Automatic build with github actions HOT 1
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 omnisshagent.