[Bug 69] Generalize SSH_ASKPASS

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Mon Jan 26 08:39:44 EST 2009


https://bugzilla.mindrot.org/show_bug.cgi?id=69





--- Comment #16 from Jö <jorrit at jorrit.de>  2009-01-26 08:39:41 ---
Created an attachment (id=1599)
 --> (http://bugzilla.mindrot.org/attachment.cgi?id=1599)
allow "always:" prefix in $SSH_ASKPASS

This patch adds support for certain prefixes in $SSH_ASKPASS:

 * "always:" always use the given program to ask for a passphrase,
   never use the tty/stdin

 * "never:" always use tty/stdin to ask for a passphrase, fail if the 
   caller requestes ssh-askpass via RP_USE_ASKPASS

 * "auto:" or no prefix: automatically determine whether to use 
   ssh-askpass, like before

The ssh-askpass program can be specified after the colon, or as the
whole of $SSH_ASKPASS, if there is no prefix.  If the program
specification is empty, the compiled in default is used via
_PATH_SSH_ASKPASS_DEFAULT.  If $SSH_ASKPASS is unset this is equivalent
to $SSH_ASKPASS set to the empty string.

Apart from the the prefixes, this differs in how it treats an empty
$SSH_ASKPASS; previously it would blindly execute the empty string, now
it will use the compiled in default for ssh-askpass.  This is what was
always done for unset $SSH_ASKPASS.

-- 
Configure bugmail: https://bugzilla.mindrot.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching someone on the CC list of the bug.


More information about the openssh-bugs mailing list