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
failed to start SSH session: unable to exchange encryption keys #1809
Comments
LibGit2Sharp does not support SSH. |
will it support SSH soon? |
No, the official packages are unlikely to ever support it. We would have to ship SSH libraries as part of our packages, and that's not something we're interested in doing. There's far too many maintenance and security burdens involved if we did that. If you want to use LibGit2Sharp, you'll need to use HTTPS instead of SSH. |
I think that the realistic way to support this is to build the ability for libgit2 to understand how to talk to |
If libgit2 did implement that kind of change, then yeah LibGit2Sharp could definitely take advantage of that. Until something like that happens, though, HTTPS is going to be the only supported protocol. |
Strongly agree - you shouldn't (can't, realistically) be the security response team for somebody else's product. |
libgit2 libraries for other languages (e.g. nodejs) support SSH. Lacking this feature is a significant limitation. |
I haven't dug through the code, but what about defining an interface for SSH operations? Users can implement the interface then hand it over to LibGit2Sharp and have it route all SSH operations through the provided interface instance. That way y'all don't have to ship another library with it and those who need it can add it on and still use all the wonderfulness this library has to offer. |
both UsernamePasswordCredentials and SshUserKeyCredentials (openssh keys already added to gitlab) give:
failed to start SSH session: unable to exchange encryption keys
The text was updated successfully, but these errors were encountered: