Despite setting both DISPLAY and SSH_ASKPASS, i cannot get ssh to use the SSH_ASKPASS to get the password from a terminal or cron Reproducible: Always Steps to Reproduce: 1. Set DISPLAY to something like "localhost:0" 2. set SSH_ASKPASS to the appropriately permissioned program (in this case, root only 0500) 3. run ssh Actual Results: In terminal, it asked for hte password before I ctrl-C. In cron, it asked for the password 3 times before failing (as seen in cron reports) Expected Results: used SSH_ASKPASS :) Included is a patch to add the '-u' option, force_use_askpass. If the -u option is set, it will use the SSH_ASKPASS for all password authentications. DISPLAY does not need to be set. If SSH_ASKPASS is not set, it will use the programmed default.
Created attachment 60720 [details, diff] Forces ssh to use the SSH_ASKPASS method This patch has been applied in a custom ebuild and is in production use.
Re-assign.
Created attachment 73192 [details, diff] Forces ssh to use the SSH_ASKPASS method with -u (updated for v4.0+)
please submit a bug and patch upstream: http://bugzilla.mindrot.org/