GIT/SSH_ASKPASS used for username input in https:// URLs
- Date: Mon, 6 May 2019 15:47:18 +0200
- From: Andreas Krey <a.krey@xxxxxx>
- Subject: GIT/SSH_ASKPASS used for username input in https:// URLs
there is an interesting wart around prompt.c -
PROMPT_ECHO isn't used in invoking an external helper program.
Thus, if I clone something on https (which requires auth for that),
and have SSH_ASKPASS set, I will get two GUI *password* prompts,
even though the first one will indicate in the title that it *is*
asking for the username.
But basically, given the trivial protocol of SSH_ASKPASS, there
doesn't seem to be any way to properly fix this without support
from any desktop environment that sets SSH_ASKPASS. :-(
The best I can currently tell my users is to use the
configuration to fix the username.
But if we can't fix this, maybe we can at least point this out in the docs?
"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800