From: Andreas Krey <a.krey@gmx.de>
To: git@vger.kernel.org
Subject: GIT/SSH_ASKPASS used for username input in https:// URLs
Date: Mon, 6 May 2019 15:47:18 +0200 [thread overview]
Message-ID: <20190506134718.GA12803@inner.h.apk.li> (raw)
Hi everyone,
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
[credentials "https:/..."]
configuration to fix the username.
But if we can't fix this, maybe we can at least point this out in the docs?
- Andreas
--
"Totally trivial. Famous last words."
From: Linus Torvalds <torvalds@*.org>
Date: Fri, 22 Jan 2010 07:29:21 -0800
next reply other threads:[~2019-05-06 14:18 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-06 13:47 Andreas Krey [this message]
2019-05-07 7:36 ` GIT/SSH_ASKPASS used for username input in https:// URLs Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190506134718.GA12803@inner.h.apk.li \
--to=a.krey@gmx.de \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).