-
-
Notifications
You must be signed in to change notification settings - Fork 394
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
[git-clone-ssh recipe] Failed to retrieve list of SSH authentication methods: Failed getting response #1013
Comments
Does anyone have any ideas about this? I have the same error (but using Rust). |
Same issue here. This is what I have found. The source ssh.c
tell us that "the remote accepts NONE auth, which is bizarre" In my case this is not bizarre and is related to this issue : ssh-keygen-does-not-create-rsa-private-key The key is generated by the code is compiled on Debian Stretch, that has The change between these two that might impact is This seems to be related to a diff in key format that can be easily checked by comparing the private key:
libssh2 1.7.0-1 : old style PEM key
A solution is to generate the key in the old, recognizable format by using Didn't found a solution that avoids generating the key .... Hope this is useful. |
I have to report that the problem arises with one of my old-style PEM private keys. |
I had same error when I accidentally swapped private and public keys |
@cprogrammer you can convert existing keys between formats, e.g. Though doing that didn't solve the issue for me, yet. |
This bug seems to make it impossible to use non-RSA keys like ed25519? |
please see saltstack/salt#57121 for my workaround |
Try with the latest release v1.11.1 which includes openssl 1.1 |
@jdavid I appear to be still having this issue with v1.11.1 on Debian 11 due to a mismatch in libgit2 system version with the Pypi pygit2 v1.11.1 version. If I downgrade to pygit2 v1.6.1, then it works. Is libgit2 not bundled fully in the wheel? Let me know if I should open a separate issue. |
Found on https://stackoverflow.com/a/77943574/6101424
|
Originally I'm trying to do a git fetch, but the git-clone-ssh recipe has the same issue. I'm using a modified version of the recipe to make it a real world example:
"[email protected]:libgit2/pygit2.git"
url that GitHub suggests for ssh cloningAfter a while (and multiple calls to the callback method) the script fails:
If i use the underdocumented
pygit2.KeypairFromAgent
Keypair Constructor the script works without problems:Here's the result:
expected:
return pygit2.Keypair("git", pubkey, privkey, "")
version should be fixed or the documentation should show how to use it correctly in real live.pygit2.KeypairFromAgent("git")
should also be an example in the git-clone-recipe. It is actually really what I'm going to use and what is the best fit for my needs, but because of the issue and the example in the git-clone-recipe I was side tracked a considerable amount of time.Here's a related issue: saltstack/salt#57121
(I'm also interested in leaving a trace of my findings in the web, so that others can solve their issues faster, hence this is very verbose.)
The text was updated successfully, but these errors were encountered: