-
Notifications
You must be signed in to change notification settings - Fork 9
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
Integrate PowerShell Script for Stable and Fast Communication with Windows OpenSSH ssh-agent from WSL2 #54
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This change is to address issue #52. |
The wsl2-ssh-agent-proxy is an alternative to socat and omni-socat, serving as an ssh-agent proxy that runs persistently on the WSL2 side. |
masahide
force-pushed
the
wsl2-ssh-agent-proxy
branch
from
September 9, 2024 00:02
b219d31
to
01ed97d
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The primary focus of this pull request is the integration of a PowerShell script to enable stable and fast communication between the WSL2 environment and the Windows OpenSSH ssh-agent. This significant change has led to several other related updates and improvements:
PowerShell Script Integration:
pwsh.ps1
, embedded within the Go script, which handles packet reading, writing, and interaction with the named pipe client stream for communication with the Windows OpenSSH ssh-agent. This integration is crucial for ensuring reliable and efficient communication from WSL2.New Go Script:
main.go
undercmd/wsl2-ssh-agent-proxy/
. This script manages the core logic for the WSL2 SSH Agent Proxy, including socket handling, packet multiplexing, and the integrated PowerShell script execution.GitHub Actions Workflow:
actions/upload-artifact@v4
,actions/checkout@v4
,actions/setup-go@v5
, andactions/download-artifact@v4
.build-wsl2-ssh-agent-proxy
to build the WSL2 SSH Agent Proxy. This job compiles the Go code for the WSL2 SSH Agent Proxy and compresses the output for later use.Release Process:
build-wsl2-ssh-agent-proxy
.These changes collectively enhance the project’s ability to facilitate a more robust and high-performance communication channel between WSL2 and the Windows OpenSSH ssh-agent, improving the overall user experience in such environments.