Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 95220 - Need method for using the SSH_ASKPASS from terminal
Summary: Need method for using the SSH_ASKPASS from terminal
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-06 07:22 UTC by Brenden Conte
Modified: 2005-11-19 22:32 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Forces ssh to use the SSH_ASKPASS method (force_askpass.patch,5.03 KB, patch)
2005-06-06 07:25 UTC, Brenden Conte
Details | Diff
Forces ssh to use the SSH_ASKPASS method with -u (updated for v4.0+) (openssh-4.0_force_askpass.patch,4.90 KB, patch)
2005-11-19 11:03 UTC, Brenden Conte
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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/