wsl2-ssh-pageant
wsl-ssh-pageant
wsl2-ssh-pageant | wsl-ssh-pageant | |
---|---|---|
8 | 6 | |
309 | 598 | |
- | - | |
1.7 | 0.0 | |
almost 2 years ago | about 1 year ago | |
Go | Go | |
MIT License | BSD 2-clause "Simplified" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
wsl2-ssh-pageant
-
Using Unix sockets with WSL2 on Windows Store -> How to Use Unix Sockets with WSL2 on Windows Store
Hey there! So, I've been using WSL2 with a yubikey for gpg, which is pretty sweet. Basically, this setup uses a Unix socket to Windows gpg-agent and pageant (if you're curious, you can find all the details in this GitHub repo: https://github.com/BlackReloaded/wsl2-ssh-pageant). It's been working great for about a month or so, until I recently installed the Windows Store version for WSLg support on Windows 10. But now, my WSL2 isn't talking to the Win gpg-agent anymore. I've searched GitHub for answers, but no luck yet. Figured I'd post here and see if there are others in the same boat or who might have some tips on this pesky socket issue. Thanks!
- Unix sockets + WSL2 win store
-
If you want to use Yubikey from WSL2 (socat passthrough), install gpg4win 3.1.16, NOT the latest (4.0) one
You should use the latest wsl2-ssh-peagent, which has a new --gpgConfigBasepath option to allow you to specify the .gnupg directory in Windows.
-
Tell HN: GitHub no longer supporting unauthenticated `git://`
sshCommand = C:/utils/OpenSSH-Win64/ssh.exe
For GPG, the only things I've done is to use gpg-agent and set up a passthrough for gpg-agent to WSL2 for both OpenSSH and GPG via https://github.com/BlackReloaded/wsl2-ssh-pageant/ since I do development both natively on Windows and via WSL2.
-
SSH Agent Restriction (new in OpenSSH 8.9)
Yeah, I've been using a Yubikey for a bit over a year and I'm already a huge fan of the way it works with SSH/Git. It's a bit more of a pain to set up with WSL2 since you need something like https://github.com/BlackReloaded/wsl2-ssh-pageant but it's absolutely worth the setup time.
-
How to use Windows ssh-agent on a WSL2 distribution to avoid entering SSH key passphrases?
I use PuTTY's pageant and https://github.com/BlackReloaded/wsl2-ssh-pageant to share keys between environments but you still need to enter your passphrase at power-on. Window's ssh-agent looks like a better solution. No need to re-enter the passphrase and no need to keep the private key around.
- YubiKey 5 - Certificates and signing
wsl-ssh-pageant
- How to SSH with yubikey on windows(command prompt) to connect to remote server
-
Ask HN: Have you created programs for only your personal use?
I have written these sorts of things, but I do try and put them up on GitHub if I think they’ll be useful to other people. I wrote a tool unimaginatively named wsl-ssh-pageant [0] which I wanted because I use a YubiKey for my SSH key but wanted it to be available in WSL. It has been by far my most popular GitHub project.
I do have other things as well, some on GitHub some not. A scraper to notify me when a local gym booking website changes for a time I’m interested in. A bridge between a BroadLink RM4 and HomeKit for some fans [1] - I wanted to avoid home-assistant. A script to grab my power consumption data. A shim to make gpg-agent compatible with launchd’s socket activation protocol [2].
[0] - https://github.com/benpye/wsl-ssh-pageant
[1] - https://github.com/benpye/hkrm4
[2] - https://github.com/benpye/launchd_shim
- Consolidate the chaos of Windows ssh-agent into one.
-
Would Yubikey provide official support of using yubikey in WSL 1/2?
I don't need to pass a path to the gpg socket to wsl-ssh-pageant. I just pass it the UNC path for the socket I want it to open.
- YubiKey 5 - Certificates and signing
-
Socket Cat
In the past I also used https://github.com/benpye/wsl-ssh-pageant to go from WSL to Pageant (which I believe KeeAgent is also compatible with)
What are some alternatives?
sshuttle - Transparent proxy server that works as a poor man's VPN. Forwards over ssh. Doesn't require admin. Works with Linux and MacOS. Supports DNS tunneling.
wsl-ssh-agent - Helper to interface with Windows ssh-agent.exe service from Windows Subsystem for Linux (WSL)
WinCryptSSHAgent - Using a Yubikey for SSH Authentication on Windows Seamlessly
YubiKey-Guide - Guide to using YubiKey for GnuPG and SSH
windows-fido-bridge - An OpenSSH SK middleware that allows you to use a FIDO/U2F security key (e.g. a YubiKey) to SSH into a remote server from WSL or Cygwin.
winssh-pageant - Bridge to Windows OpenSSH agent from Pageant. This means the openssh agent has the keys and this proxies pageant requests to it.
npiperelay - npiperelay allows you to access Windows named pipes from WSL
tunnel-wireguard-udp2tcp - Tunnel WireGuard UDP traffic over TCP using socat
openssh-sk-winhello - A helper for OpenSSH to interact with FIDO2 and U2F security keys through native Windows Hello API