Code Monkey home page Code Monkey logo

Comments (2)

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

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.

DawidWetzler avatar DawidWetzler commented on June 7, 2024

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)

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.