You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Support for the Windows OpenSSH ssh-agent was added to libssh2 with libssh2/libssh2@c998f79 and added to libssh2-sys with version 0.2.22 (alexcrichton/ssh2-rs@3fe863b). libssh2-sys 0.2.23 looks to have been included at least since cargo 1.57.0 based on CI builds.
All that said, the copy of cargo pulled down by rustup doesn't seem to include a new enough version of libssh2-sys to include support for Windows OpenSSH. This can be confirmed by searching the binary for the string "openssh-ssh-agent" as this string must be in the binary to be able to talk to the agent. A similar string for Pageant ("PageantRequest") can be find in the binary from rustup.
Lastly, building cargo from source from the same commit as the binary pulled by rustup works fine.
Steps
No response
Possible Solution(s)
There may be a difference between the CI builds and those used for releases. If so, it may be that the version of libssh2-sys has been pinned either through Cargo.lock or some other means and needs to be updated.
Update docs for windows ssh-agent.
This updates the documentation for SSH authentication using Windows and ssh-agent.
Per #10237 and rust-lang/rust#92374, Cargo now supports ssh-agent on Windows.
I'm about 80% sure this information is correct based on my reading of the code and testing. The ssh-agent that is part of mingw (or git-for-windows) uses emulated sockets, which are not compatible with traditional Windows-style named pipes.
Problem
Support for the Windows OpenSSH
ssh-agent
was added tolibssh2
with libssh2/libssh2@c998f79 and added tolibssh2-sys
with version0.2.22
(alexcrichton/ssh2-rs@3fe863b).libssh2-sys 0.2.23
looks to have been included at least sincecargo 1.57.0
based on CI builds.All that said, the copy of
cargo
pulled down byrustup
doesn't seem to include a new enough version oflibssh2-sys
to include support for Windows OpenSSH. This can be confirmed by searching the binary for the string"openssh-ssh-agent"
as this string must be in the binary to be able to talk to the agent. A similar string for Pageant ("PageantRequest"
) can be find in the binary fromrustup
.Lastly, building
cargo
from source from the same commit as the binary pulled byrustup
works fine.Steps
No response
Possible Solution(s)
There may be a difference between the CI builds and those used for releases. If so, it may be that the version of
libssh2-sys
has been pinned either throughCargo.lock
or some other means and needs to be updated.Notes
No response
Version
The text was updated successfully, but these errors were encountered: