Skip to content
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

Unable to clone from some SSH services #586

Closed
pietbrauer opened this issue Aug 7, 2016 · 4 comments
Closed

Unable to clone from some SSH services #586

pietbrauer opened this issue Aug 7, 2016 · 4 comments
Labels

Comments

@pietbrauer
Copy link
Member

I am unable to clone a repository from Visual Studio Team Services via SSH as objective-git fails with

Error Domain=GTGitErrorDomain Code=-1 "Failed to clone repository from ssh://git2go@git2go.visualstudio.com:22/MyFirstProject/_git/git2go-com to file:///.../ssh/_git/git2go-com/" UserInfo={NSLocalizedDescription=Failed to clone repository from ssh://git2go@git2go.visualstudio.com:22/MyFirstProject/_git/git2go-com to file:///.../ssh/_git/git2go-com/, NSUnderlyingError=0x7ff7d1f2a1d0 {Error Domain=GTGitErrorDomain Code=-1 "Failed to start SSH session: Unable to exchange encryption keys" UserInfo={NSLocalizedDescription=Failed to start SSH session: Unable to exchange encryption keys}}}

When I clone the same repository with the same keys via command-line git it clones successfully, which means the key is valid and there is something wrong with how we handle SSH authentication.

There are other installations of git servers with SSH that have problems as well, but I was unable to reproduce them.

Visual Studio fails reliable so I thought I would open an issue. I know that @tiennou worked on the SSH implementation, but maybe someone else has insights into this topic as well?

@tiennou
Copy link
Contributor

tiennou commented Aug 7, 2016

It seems to fail inside _libssh2_kex_exchange, but I honestly have no idea why. There have been some sightings of that error (from the PHP bindings), but they're year-old. There's this, 1 year old, with some steps on debugging, so you might try that and get more information out of libssh2

@pietbrauer
Copy link
Member Author

I suspect somethings wrong on our Objective-C side as it is working for Working Copy which uses libgit2 directly. I will do some digging how the other adapters handle SSH connections.

@pietbrauer pietbrauer added the bug label Oct 27, 2016
@tiennou
Copy link
Contributor

tiennou commented Mar 19, 2018

Just noticed that, given the recent TLS-pocalypse, it might be related to us tracking an old version of libssh2 at the time this was filed. Does it still happen with current master ?

@tiennou
Copy link
Contributor

tiennou commented Aug 10, 2018

AFAIK there are no libgit2 reports that seem to point to a missing key exchange/support from the currently in-use libssh2, and since this report is pretty old, let's say it's now fixed 😉.

@tiennou tiennou closed this as completed Aug 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants