Skip to content

Conversation

@ud3v0id
Copy link

@ud3v0id ud3v0id commented Mar 11, 2020

PowerShell/Win32-OpenSSH#435

Forward the remote Linux Unix domain socket to the local Windows named pipe:
ssh -NL //./pipe/docker_engine:/var/run/docker.sock user@host
The equivalent for a remote Windows named pipe would be:
ssh -NL //./pipe/docker_engine://./pipe/docker_engine user@host

Forward the local Windows named pipe to the remote Linux Unix domain socket:
ssh -NR /var/run/ssh-auth.sock://./pipe/ssh-pageant user@host
The equivalent for a remote Windows named pipe would be:
ssh -NR //./pipe/ssh-pageant://./pipe/ssh-pageant user@host

@msftclas
Copy link

msftclas commented Mar 11, 2020

CLA assistant check
All CLA requirements met.

@phxnsharp
Copy link

Thanks! This patch works for us.

It is worth noting that based on https://devblogs.microsoft.com/commandline/windowswsl-interop-with-af_unix/ this same code should allow for forwarding Windows Domain Sockets too, though it doesn't appear to work for me. Might require the insider SDK, which I have not installed.

@bagajjal
Copy link

bagajjal commented May 4, 2021

@ud3v0id - Thank you for your time and efforts.
There are too many fundamental changes in this PR. I see several tests have failed.
Please add good amount of comments, test cases for your new code and address the test failures.

@bagajjal
Copy link

Closing this PR as there is no activity from the PR author.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants