From: Henk <henk_westhuis@hotmail.com>
To: git@vger.kernel.org
Subject: SSH_ASKPASS
Date: Sat, 10 Jan 2009 02:55:34 -0800 (PST) [thread overview]
Message-ID: <1231584934701-2137400.post@n2.nabble.com> (raw)
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 reply other threads:[~2009-01-10 10:57 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-10 10:55 Henk [this message]
2009-01-10 17:13 ` SSH_ASKPASS Changsheng Jiang
2009-01-10 18:02 ` SSH_ASKPASS Alexander Gavrilov
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1231584934701-2137400.post@n2.nabble.com \
--to=henk_westhuis@hotmail.com \
--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.
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 NNTP newsgroup(s).