Unless a user is running ssh-agent, libgit2 does not find ssh keys, when git does.
There are popular issues with both Rust's Cargo, and Julia's Pkg.jl.
Currently, Cargo solves this issue by using system git as a replacement for libgit2. Julia 1.6 may also support this.
This has been discussed before, in #4338.
It seems the simplest solution is to revert from libssh2 to libssh: #5253. This is made more urgent by RedHat's deprecation of libssh2 in favor of libssh: #5225.
I wanted to bring it up again because this feature is critical enough that two of the higher-profile software that depends on libgit2 have or are exploring alternatives due to this issue.
Unless a user is running
ssh-agent, libgit2 does not find ssh keys, when git does.There are popular issues with both Rust's Cargo, and Julia's Pkg.jl.
Currently, Cargo solves this issue by using system git as a replacement for libgit2. Julia 1.6 may also support this.
This has been discussed before, in #4338.
It seems the simplest solution is to revert from libssh2 to libssh: #5253. This is made more urgent by RedHat's deprecation of libssh2 in favor of libssh: #5225.
I wanted to bring it up again because this feature is critical enough that two of the higher-profile software that depends on
libgit2have or are exploring alternatives due to this issue.