-
Notifications
You must be signed in to change notification settings - Fork 892
Fix SSH agent forwarding on Windows #4007
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
Comments
This comment was marked as outdated.
This comment was marked as outdated.
Yeah this is still broken, please don't just close issues "because they are stale" |
The way that SSH agent works on windows is that you start a system service and it listens on a named pipe called |
I'll investigate this after I get the GPG implementation mentioned above in. |
I think we can accomplish this for windows workspaces (i.e. listening on the agent socket) by intercepting forward calls in our SSH server, looking for values like |
This issue is becoming stale. In order to keep the tracker readable and actionable, I'm going close to this issue in 7 days if there isn't more activity. |
It seems to me that nowadays there are two schools of thought on the best way of keeping the number of open issues down. One way is to fix a bug and then close the issue. The other way is to simply wait an "appropriate amount of time", mark the issue as stale and then close it. |
@deansheather I'm guessing this issue is still not fixed? I'm reopening for now so it isn't lost. Feel free to close if this isn't the case. |
Just discovered microsoft/go-winio which has support for named pipes, might be useful here. |
Uh oh!
There was an error while loading. Please reload this page.
Currently SSH agent forwarding is broken on Windows (even on the latest OpenSSH 8.9p1 release).
It's uncertain what the problem is, but most likely the use of unix sockets. We could look at projects like masahide/OmniSSHAgent for inspiration.
Fixing this could open up a path towards using our own SSH agent proxy instead of our
GIT_SSH_COMMAND
wrapper. This would allow for features like git commit signing via SSH keys in the agent (including the coder key and whatever other keys have been forwarded).As mentioned in #3126 (comment), SSH agents are somewhat of a mess on Windows (excerpt):
The text was updated successfully, but these errors were encountered: