You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
**NOTE:** If you are having issues using`wsl-ssh-agent-relay` with systemd try adding`:WSLInterop:M::MZ::/init:PF` to`/usr/lib/binfmt.d/WSLInterop.conf`. For example (thanks to[rkl110](https://github.com/rkl110) -[Microsoft/WSL - Issue 8843](https://github.com/microsoft/WSL/issues/8843)):
20
20
21
-
Alternatively if you prefer to properly use systemd support in WSL2 /etc/wsl.conf:
21
+
```bash
22
+
sudo sh -c'echo :WSLInterop:M::MZ::/init:PF > /usr/lib/binfmt.d/WSLInterop.conf'
23
+
```
24
+
25
+
Alternatively if you prefer to directly use systemd support in WSL2 /etc/wsl.conf:
22
26
23
27
```ini
24
28
[boot]
@@ -55,10 +59,6 @@ You *really* have to be on WSL 2 in order for all of this to work - if you see e
55
59
56
60
**NOTE:** You may be running Linux distribution with OpenSSH version more recent than your Windows host has out of the box. Presently Ubuntu 22.04 and Arch both demonstrate this - communication with ssh-agent will fail. In such cases please visit[Windows OpenSSH](https://github.com/PowerShell/Win32-OpenSSH) development and update your Windows OpenSSH with latest release.
57
61
58
-
```bash
59
-
sudo sh -c'echo :WSLInterop:M::MZ::/init:PF > /usr/lib/binfmt.d/WSLInterop.conf'
60
-
```
61
-
62
62
##Helper to interface with Windows ssh-agent.exe service from WSL1 (replacement for ssh-agent-wsl).