Comments (4)
This question is not related to wsl-ssh-agent
...
You did not put your keys into windows ssh-agent service (using ssh-add
). Instead, you are reading them directly from files judging from your configuration IdentityFile ~/.ssh/jibbers42-ed25519
and IdentityFile ~/.ssh/work-ed25519
. As such wsl-ssh-agent
has nothing to read from ssh-agent
on windows end and make available on WSL2 side.
This could be easily verified by issuing ssh-add -L
on both Windows side and WSL2 side and comparing results.
from wsl-ssh-agent.
I apologize for being off topic - I just hoped it was something someone here had experience with already since the WSL2 to Windows SSH agent would be out of experience for most people.
My thought was that the IdentityFile ...
configuration told ssh which key to use, but it still used ssh-agent for credentials (I don't really know how it works). My keys have a passphrase that I am not prompted for so I'm sure I added them to ssh-agent and it's being used.
Both sides have the same ssh-add -L
output...
Windows:
> ssh-add -L
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK3E+1ehmyyQjfmDQ0a05L3jNvl+R3YskXZJCpPZxMGN work-ed25519
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAZHEf5lVMNMUFtOmlHKl76nOtCKY433nFqiNT22PE6m jibbers42-ed25519
WSL2:
$ ssh-add -L
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIK3E+1ehmyyQjfmDQ0a05L3jNvl+R3YskXZJCpPZxMGN work-ed25519
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIAZHEf5lVMNMUFtOmlHKl76nOtCKY433nFqiNT22PE6m jibbers42-ed25519
from wsl-ssh-agent.
For anyone else that runs into this, I copied my ssh keys and .ssh\config
to the WSL2 side. Since the config uses tilde for paths, the same paths work from both Windows and WSL2 and didn't need to be fixed up in any way. Now the correct key is being used from both sides and ssh-agent on Windows is authenticating everything.
from wsl-ssh-agent.
Agreed, this is as confusing as it could be... If you copied both keys and config - you may not need wsl-ssh-agent at all :) Not sure but in the future something like this: https://www.openssh.com/agent-restrict.html may be useful in such cases....
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
- '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.