Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 95220

Summary: Need method for using the SSH_ASKPASS from terminal
Product: Gentoo Linux Reporter: Brenden Conte <conteb.gentoo>
Component: New packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED UPSTREAM    
Severity: enhancement CC: aliz
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Forces ssh to use the SSH_ASKPASS method
Forces ssh to use the SSH_ASKPASS method with -u (updated for v4.0+)

Description Brenden Conte 2005-06-06 07:22:03 UTC
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.
Comment 1 Brenden Conte 2005-06-06 07:25:18 UTC
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.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-11-11 10:59:07 UTC
Re-assign.
Comment 3 Brenden Conte 2005-11-19 11:03:56 UTC
Created attachment 73192 [details, diff]
Forces ssh to use the SSH_ASKPASS method with -u (updated for v4.0+)
Comment 4 SpanKY gentoo-dev 2005-11-19 22:32:21 UTC
please submit a bug and patch upstream:
http://bugzilla.mindrot.org/