-
Notifications
You must be signed in to change notification settings - Fork 41
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
clone [windows]: Doesn't prompt to confirm unknown host keys or enter passphrase #852
Comments
Similarly if the user's SSH key has a passphrase, kart isn't prompting for it and the auth is simply failing.
Reported on windows, so isn't solely a helper-mode thing as helper-mode isn't active on Windows. |
Tested working on MacOS now (Kart 0.14rc2) due to the fixes in #856 👍 Most likely still fails on Windows. |
Git / ssh on windows still can't prompt the user for extra input. This is because we run git with stdout connected to a pipe, and git detects this and won't prompt the user. (For whatever reason, this doesn't happen on macos / linux - the logic must be slightly different on the different platforms, or, they use different mechanisms to prompt the user...). Possible fix - set up a pseudo-tty and run git connected to that, and somehow echo whatever is output to the pseudo-tty to stdout. |
Think we could file a question/issue with Git For Windows and see if they have a known solution? It's basically developed by MS so if anyone will know, they will. |
git-for-windows/git#1613 is relevant |
Spent a while today modifying the code to capture any of stdout and/or stderr, instead of always capturing both. But it was to no avail when I realised that stderr is the one we want to capture, and, stderr is the one that git or the ssh-thingy checks for isatty() before using it to prompt the user. If these were on different fds, we could capture one, the other one would prompt, everything would work fine |
Don't pipe stderr on windows - fixes #852
Describe the bug
On the first ssh call to a new host, Kart hits this problem:
Expected behaviour
The git/ssh behaviour here is to prompt for user input to authorize the new key, based on the fingerprint:
HELPER MODE
KART_USE_HELPER=0
fixes it.Output
Add the output you're seeing to help explain your problem.
**Version Info **
The text was updated successfully, but these errors were encountered: