twobiers / twobiers.github.io

https://twobiers.github.io/
0 stars 0 forks source link

Post: SSH and GPG Relay inside WSL2 with systemd boot #3

Open lucasfcnunes opened 5 days ago

lucasfcnunes commented 5 days ago

Comments for the post: https://twobiers.github.io/posts/wsl_systemd_gpg_ssh_relay

lucasfcnunes commented 5 days ago

@twobiers

demonbane commented 5 days ago

@lucasfcnunes -a was added in @NZSmartie's fork. This is the only version that supports it to the best of my knowledge.

If you want to set things up from scratch this is a great summary, but if you want to just get it working you can check out wsl-gpg-systemd (I'm the author). No socat required, just npiperelay and systemd.

lucasfcnunes commented 5 days ago

@lucasfcnunes -a was added in @NZSmartie's fork. This is the only version that supports it to the best of my knowledge.

If you want to set things up from scratch this is a great summary, but if you want to just get it working you can check out wsl-gpg-systemd (I'm the author). No socat required, just npiperelay and systemd.

Here https://github.com/twobiers/twobiers.github.io/blob/b8720e95580689f8db40436f7fa74f90308fa188/content/posts/2023-07-23_wsl_systemd_gpg_ssh_relay/index.md?plain=1#L10 @twobiers point to @jstarks's.

twobiers commented 5 days ago

Good catch, thanks for pointing out. I've updated the link accordingly.

@demonbane You have come up with a cool solution there. Unfortunately I'm not using Windows/WSL at the moment to try it out in practice, but it looks great.

While there are tutorials available for using some combination of socat, wsl-ssh-pageant/wsl2-ssh-pageant, and npiperelay, they are a hassle to set up and very prone to breakage in my experience.

True. I've set this up multiple times in various ways and eventually it broke.