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
I'd like to forward a named pipe over SSH, from remote Windows machine to a local machine. The remote Windows machine is running sshd. The pipe I want to forward is for the Docker Engine API, although that shouldn't matter.
To forward an equivalent Unix domain socket from a remote Unix machine, I'd run (and this works):
SSH doesn't seem to support forwarding files (things that use the file APIs, including *nix FIFOs/named pipes and Windows named pipes). This is awkward, since Windows named pipes really are NT's equivalent of Unix domain sockets.
There ought to be a way to connect to pipes (Unix or Windows) using file APIs on the remote end, but I don't know of one.
Manoj Ampalam (@manojampalam) Any updates on that AF_UNIX socket support? I just tried this with OpenSSH on Windows Server 2019 and got a slightly different error:
channel 3: open failed: connect failed: Not a socket
Activity
arif-pragmasys commentedon Dec 19, 2016
Named pipes have to be handled differently(not like regular socket) in the win32compat socket-io layer.
cbhacking commentedon Mar 20, 2017
SSH doesn't seem to support forwarding files (things that use the file APIs, including *nix FIFOs/named pipes and Windows named pipes). This is awkward, since Windows named pipes really are NT's equivalent of Unix domain sockets.
There ought to be a way to connect to pipes (Unix or Windows) using file APIs on the remote end, but I don't know of one.
manojampalam commentedon Mar 23, 2017
This is currently not supported but should work once AF_UNIX sockets support is added in POSIX adapter layer.
aidansteele commentedon Jul 1, 2019
Manoj Ampalam (@manojampalam) Any updates on that AF_UNIX socket support? I just tried this with OpenSSH on Windows Server 2019 and got a slightly different error:
manojampalam commentedon Jul 11, 2019
Aidan Steele (@aidansteele) sorry. Nothing in the horizon yet.
baflo commentedon Mar 2, 2022
Manoj Ampalam (@manojampalam) Any update on this?
hoang-himself commentedon May 23, 2022
PowerShell/openssh-portable#433 looks promising. Can anyone pick this up?