git/list[1] front-page[2] threads[3] people[4] search[5] about
 

GIT/SSH_ASKPASS used for username input in https:// URLs

From
Andreas Krey <a.krey@gmx.de>
Date
May 6, 2019, 13:47 UTC
Message-ID
<20190506134718.GA12803@inner.h.apk.li>
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: Jeff King
Message 1 of 2 in “GIT/SSH_ASKPASS used for username input in https:// URLs”
  1. Andreas KreyMay 6, 2019
  2. Jeff KingMay 7, 2019

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.