-
Notifications
You must be signed in to change notification settings - Fork 767
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
Agent Forwarding Windows client to Windows host not working? #1865
Comments
Dear @bagajjal , could you please consider elevating the priority of this issue? We all know Windows is not about security, but using private keys instead of passwords is so much of a common practice nowadays, that all Microsoft's efforts on OpenSSH become useless without this feature. |
Been trying to use a windows jump for ssh jump but no bueno.. Having a working openssh server in windows would solve a lot of issues for me as we already have windows jump hosts established for reaching other segments of the network. |
Have the same issue trying to go Windows 10 -> Windows Server 2022 -> git clone from GitLab instance, forwarding seems to be broken. |
It appears the issue is that the OpenSSH server hasn't been modified to setup a windows pipe instead of a unix socket. Seeing these error messages in the sshd service log when agent forwarding is attempted:
|
Hi Together I have the same issue from Windows 11 (OpenSSH_for_Windows_8.6p1) -> Windows Server 2022 (OpenSSH_for_Windows_8.1p1) -> git clone from a GlitLab instance |
The bug also affects the latest Version |
This is quite disappointing. This prevents using git + public key auth within a Windows VM, connected from VSCode and Remote SSH. |
For those looking for agent forwarding working. Beta versions already allow this. Just download the latest msi from GitHub releases, install it, and you've got it. Thank you, devs! You're the best! |
@plashenkov Could you elaborate on that? Are you SSH forwarding to a Windows machine that runs the OpenSSH server and you can use your local keys? Does that create a new named pipe and set |
I have OpenSSH auth agent running on Windows and local SSH keys with a passphrase. Now I can connect to VMs (running locally) with Linux as well as to my real cloud servers. I can connect to my cloud servers from VMs now as well. My VMs run Docker services as well, and if I pass SSH_AUTH_SOCK there (from the VM to a Docker container), I can connect to my cloud servers even from the Docker container as well. I can confirm that my SSH keys are only on my Windows host. P.S. Ah you are asking about a Windows host and a Windows server. I didn't tried that. I have a Windows host and everything other is Linux. Stable Windows OpenSSH versions didn't allow that while the beta now allows. |
Right, that makes sense now. Thanks for the clarification. So yeah, people looking to SSH into a Windows box with agent forwarding enabled will still have to wait :( I'll be watching this PR in the mean time. 👀 |
i had set ssh_shell to wn32 version bash, but still can't foward ssh socket |
Originally posted here: PowerShell/openssh-portable#540 , but was asked to open an issue here
"OpenSSH for Windows" version
8.1.0.1
Server OperatingSystem
Windows 10 Enterprise
Client OperatingSystem
Windows 10 Pro
What is failing
Unable to forward ssh keys through agent forwarding from windows client -> windows server
Is agent forwarding supported when connecting from a windows client to a windows host machine ?
I tried all of the things below, but had no luck and stumbled across this comment #1136 (comment) which says Agent forwarding is not supported on the server yet, but you should be able to use the client to forward agent to a non-Windows target.
Was following these instructions from github : https://docs.github.com/en/developers/overview/using-ssh-agent-forwarding
Expected output
Actual output
Cant list any keys under the ssh session
The text was updated successfully, but these errors were encountered: