Displaying 4 results from an estimated 4 matches for "ssh_askpass_env".
2000 Sep 09
0
2.2.0p1 PATCH: ssh/scp/slogin will invoke ssh-askpass
...ic = key_new(KEY_RSA);
@@ -244,7 +246,15 @@
snprintf(buf, sizeof buf, "Enter passphrase for RSA key '%.100s': ",
comment);
if (!options.batch_mode)
- passphrase = read_passphrase(buf, 0);
+ if (!interactive && getenv("DISPLAY")) {
+ if (getenv(SSH_ASKPASS_ENV))
+ askpass = getenv(SSH_ASKPASS_ENV);
+ else
+ askpass = SSH_ASKPASS_DEFAULT;
+ passphrase = ssh_askpass(askpass, buf);
+ } else {
+ passphrase = read_passphrase(buf, 0);
+ }
else {
debug("Will not query passphrase for %.100s in batch mode.",
comment...
1999 Dec 10
2
[David Huggins-Daines <dhd@plcom.on.ca>] Bug#52414: ssh-add uses ssh-askpass, but ssh doesn't
...300];
snprintf(buf, sizeof buf, "Enter passphrase for RSA key '%.100s': ",
comment);
- if (!options.batch_mode)
- passphrase = read_passphrase(buf, 0);
- else {
+ if (!options.batch_mode) {
+ if (use_askpass) {
+ const char * askpass;
+ if ((askpass = getenv(SSH_ASKPASS_ENV)))
+ passphrase = ssh_askpass(askpass, buf);
+ else
+ passphrase = ssh_askpass(SSH_ASKPASS_DEFAULT, buf);
+ } else
+ passphrase = read_passphrase(buf, 0);
+ } else {
debug("Will not query passphrase for %.100s in batch mode.",
comment);
passphrase = xstr...
2004 Oct 03
3
[PATCH] PreferAskpass in ssh_config
...atic char *
ssh_askpass(char *askpass, const char *msg)
@@ -103,7 +106,9 @@
int rppflags, use_askpass = 0, ttyfd;
rppflags = (flags & RP_ECHO) ? RPP_ECHO_ON : RPP_ECHO_OFF;
- if (flags & RP_USE_ASKPASS)
+ if (flags & RP_USE_ASKPASS ||
+ (options.prefer_askpass && getenv(SSH_ASKPASS_ENV) &&
+ !(flags & RP_ECHO)))
use_askpass = 1;
else if (flags & RP_ALLOW_STDIN) {
if (!isatty(STDIN_FILENO))
Index: ssh-add.c
===================================================================
RCS file: /cvs/openssh/ssh-add.c,v
retrieving revision 1.77
diff -u -r1.77 ssh-ad...
2008 Aug 29
7
[Bug 69] Generalize SSH_ASKPASS
https://bugzilla.mindrot.org/show_bug.cgi?id=69
Damien Miller <djm at mindrot.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |djm at mindrot.org
Alias| |generalised-askpass
--
Configure bugmail: