4 ms·
WSL is really convenient for a lot of use cases though. Much better than dual booting on a machine used primarily for gaming.
by ycombinatrix 1y ago
WSL is really convenient for a lot of use cases though. Much better than dual booting on a machine used primarily for gaming.
- mikepurvis 1y agoI’m also doing WSL-centric development and I’m not even really gaming on that machine, I just appreciate the comforts that come with competent multi monitor support and reliable wake from sleep. My biggest frustration with WSL at present is that 1Password won’t properly support proxying their ssh agent into it. (Though in googling it again just now, I see a suggestion to try something called npiperelay, so I’ll spend some time seeing again if I can get that working)
- olivermuty 1y agoNo such thing needez, just alias ssh to ssh.exe and ssh-add to ssh-add.exe and it works out of the box.
- issei 1y agoaliasing the ssh.exe generally works, but not for all applications. I had issues with this approach while running ansible playbooks ("getsockname failed: Not a socket").
- ycombinatrix 1y agoYou can actually run the windows ssh.exe binary directly from WSL, no extra setup needed. Give it a try.
- xzez 1y agoI used to use the `npiperelay` method but have since switched to this and it works nicely.
- mikepurvis 1y agoI’m aware that 1P themselves recommend this but I don’t like it; a lot of my usage is other things like git or docker or ansible calling ssh and I don’t want to deal with those things having to also be steered to an alternative ssh implementation.
- Cu3PO42 1y agoI can confirm npiperelay does the job just fine. If you happen to use Nix, I have a quick and easy package at github:Cu3PO42/gleaming-glacier/next#wsl-ssh-agent. Simply install that and 'source $(which wsl-ssh-agent)' in your bashrc and you should be good to go. (There's also a HM module in the Flake.)
- kyriakos 1y agoon in a corporate environment where windows is required for many things