Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support forward named pipe through SSH tunnel #433

Closed
wants to merge 4 commits into from
Closed

Support forward named pipe through SSH tunnel #433

wants to merge 4 commits into from

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