| Summary: | ssh-askpass should be able to distinguish between a prompt for confirmation and a prompt for an actual passphrase | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | Portable OpenSSH | Reporter: | Daniel Kahn Gillmor <dkg> | ||||||
| Component: | Miscellaneous | Assignee: | Assigned to nobody <unassigned-bugs> | ||||||
| Status: | CLOSED FIXED | ||||||||
| Severity: | normal | CC: | djm, maxigas, olfway | ||||||
| Priority: | P2 | ||||||||
| Version: | 5.8p1 | ||||||||
| Hardware: | All | ||||||||
| OS: | All | ||||||||
| Bug Depends on: | |||||||||
| Bug Blocks: | 3079 | ||||||||
| Attachments: |
|
||||||||
|
Description
Daniel Kahn Gillmor
2011-02-25 08:41:55 AEDT
Created attachment 2003 [details]
patch to contrib/gnome-ssh-askpass2.c implementing these changes
here's a patch implementing this behavior in contrib/gnome-ssh-askpass2.c (does anyone really use gnome1 any more? should we remove contrib/gnome-ssh-askpass1.c?)
This patch looks noisy, but most of it is just doing proper indenting, so it's whitespace-only changes.
Created attachment 2004 [details]
set SSH_ASKPASS_CONFIRMATION_ONLY when just asking for permission
And here is the fix so that ssh sets the environment variable correctly when invoking ssh-askpass.
It is awfully confusing indeed. I was trying several times before realising what was going on. :o Any news on that? OpenSSH 8.2 sets a $SSH_ASKPASS_PROMPT environment variable that implements this feature. SSH_ASKPASS_PROMPT=confirm indicates a yes/no confirmation dialog, SSH_ASKPASS_PROMPT=none indicates an informational dialog and everything else is a regular passphrase request. the contrib/gnome-ssh-askpass implementation has been updated to support these. close bugs that were resolved in OpenSSH 8.5 release cycle |