-
Notifications
You must be signed in to change notification settings - Fork 288
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
jj git clone doesn't support interactive authentication #401
Comments
This is a known limitation. I recommend using |
I think (I've since gone back to Git) that this means |
Even if ssh-agent is running it seems to give cryptic errors if the agent doesn't have the key added yet: Seems like the error message could at least be improved for that case, but that probably comes directly from libgit2, right? |
I'd like to follow up to get this improved in whatever relevant dependency. Does anyone understand if the misfeature is in libgit2 or libssh2 or something else? I found relevant error message text in libgit2 ssh_libssh2.c and in libssh2 openssl.c. |
And I'm guessing this code or something like it is what gets me the "Enter passphrase for key" from git fetch on my system: https://github.com/openssh/libopenssh/blob/05dfdd5/ssh/sshconnect2.c#L1477 |
Does #3191 handle this? It switches from libssh2 to use OpenSSH for SSH interaction. I'm not very familiar with the internals of the libgit2 SSH workflow, but I suspect that we might prefer the OpenSSH variant eventually because it permits configuration from |
Ooh, I'll give it a try and verify, thanks! |
Yep, awesome, tried your openssh version locally and it worked exactly like I expected, at least for the "Unable to extract public key" scenario. Will follow up on the PR. |
Description
jj git clone
(and presumably otherjj git
commands) don't support interactive authentication, for example if ssh is used to connect to the remote and the ssh key has a passphrase.Steps to Reproduce the Problem
IdentityFile
in.ssh/config
jj git clone git@github:...
Expected Behavior
The passphrase for the ssh identity file is requested, and the git operation continues.
Actual Behavior
jj git clone
fails with the error:Specifications
The text was updated successfully, but these errors were encountered: