Comments (2)
Dawid, WSL2 does not actually use wsl-ssh-agent-gui.exe
, only npiperelay.exe
, so it does not matter how you started it or how it is configured.
if you .bashrc is correct and you have installed socat on your WSL2 Linux distro - everything should just work even without you running wsl-ssh-agent-gui.exe from powershell. Socket is being created by socat, when accessed from the WSL2 end socat runs npiperelay.exe which accesses pipe and ssh-agent service on Windows end that it all you need. You could normally validate staff by running ssh-add -L
from Windows and from WSL2 to see the same results.
Now - I have no udea what KeypassXC is, what it does and how you want it to be used.
from wsl-ssh-agent.
Thanks for such a quick response!
Well, okay, now I understand. Thanks for explaining.
Keepass (KeepassXC) is a simple password manager. While Keepass needs Keeagent (Plugin) to support ssh keys storage KeepassXC doesn't as this functionality is being natively delivered.
While I was on WSL1 I have imported my keys like that: https://gist.github.com/strarsis/e533f4bca5ae158481bbe53185848d49
and it was working fine.
I've tried running ssh-add -L from Windows and all of my ssh keys have showed up (that's what I expected) while on WSL2 following error occurred:
error fetching identities: communication with agent failed
.
socat is installed. I don't think that I have messed up with my paths.
I've reinstalled my whole WSL and done all the steps before with leaving the gui thing.
Now ssh-add -L showed all of my keys and it is working. Thank you for your help!
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.