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

SSH_ASKPASS

From
Henk <henk_westhuis@hotmail.com>
Date
Jan 10, 2009, 10:55 UTC
Message-ID
<1231584934701-2137400.post@n2.nabble.com>
Hi,

I'm trying to get "git push" to use git-gui--askpass to ask me for the password instead of promting me on the command promt. I need this because I start the "git push" command from code and there is no terminal where ssh can ask the user for a password. I tried writing the following tcl script that allmost is what I need:

set env(SSH_ASKPASS) "C:/Program Files/Git/libexec/git-core/git-gui--askpass" exec ssh git@github.com

Ssh will now ask me for the password using git-gui--askpass. But now the standardout is also shown in a dialog, and not on the standardout of the process. Looking at the git-gui scripts didn't help me, because I have absolutely zero experience in tcl.

I also tried not using a tcl script, but setting SSH_ASKPASS as an environment variable in windows. This doesn't seem to work, ssh will still prompt me for a password.

Anyone can help me write a script that asks for the password using SSH_ASKPASS but still prints the output on standardout?

I use Windows btw.
Henk
-- 
View this message in context: http://n2.nabble.com/SSH_ASKPASS-tp2137400p2137400.html
Sent from the git mailing list archive at Nabble.com.
Next: Changsheng Jiang
Message 1 of 3 in “SSH_ASKPASS”
  1. HenkJan 10, 2009
  2. Changsheng JiangJan 10, 2009
  3. Alexander GavrilovJan 10, 2009

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.