WSL 22.04 - npiperelay: write failed 32: Broken pipe

Bug #1982672 reported by Jacob V. Rasmussen
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu WSL
New
Undecided
Unassigned

Bug Description

I installed Windows 10, WSL 2 and Ubuntu 22.04.
In windows I have Keepass with the plugin Keeagent, and loaded my SSH Key through keeagent.
Keeagent have the option 'Enable agent for Windows OpenSSH', which listens on a named pipe, which I use to pipe the agent into WSL.

This is used to only have *one* agent, running my private key.

In WSL I install tmux and socat, and run the following command:

```
/usr/bin/socat UNIX-LISTEN:/tmp/wsl-auth.sock,unlink-close,unlink-early,fork EXEC:"/mnt/c/Users/jvr/bin/npiperelay.exe //./pipe/openssh-ssh-agent",nofork
```

Npiperelay is downloaded from here:
https://github.com/jstarks/npiperelay

This works on both Ubuntu 18.04 and 20.04, but in 22.04 I get these messages:

```
write failed 32: Broken pipe
```

I do not know where this pipe is not working, but since it is working in both other Ubuntu versions and in AlmaLinux 8, I suspect it is a change in 22.04 and not in WSL.

OS Name: Microsoft Windows 10 Pro
OS Version: 10.0.19043 N/A Build 19043
OS Manufacturer: Microsoft Corporation
OS Configuration: Standalone Workstation
OS Build Type: Multiprocessor Free
BIOS Version: LENOVO N1EET95W (1.68 ), 26-05-2022
WSL: 2

Distributor ID: Ubuntu
Description: Ubuntu 22.04 LTS
Release: 22.04
Codename: jammy

Keepass: 2.51.1 (64-bit)
KeeAgent: 0.12.1.0

https://keepass.info/
https://lechnology.com/software/keeagent/

description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.