[Bug 81] ssh cannot use ssh-askspass & passphrases as documented

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Sat Jan 26 10:07:10 EST 2002


http://bugzilla.mindrot.org/show_bug.cgi?id=81

djm at mindrot.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |WORKSFORME



------- Additional Comments From djm at mindrot.org  2002-01-26 10:07 -------
The suggested change is incorrect. ssh may have stdin redirected from something
else - you do not want to read the passphease from there (e.g. the output of a
pipe). BTW the passphrase reading does work as advertised, it states:

> If ssh needs a passphrase, it will read the passphrase from the
> current terminal if it was run from a terminal.  If ssh does not
> have a terminal associated with it but DISPLAY and SSH_ASKPASS
> are set, it will execute the program specified by SSH_ASKPASS
> ...

just because you have redirected stdin does not mean you have lost your
controlling terminal. You need to call setsid to do that.

You may be interested in the patch on Bug #69 though



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the openssh-unix-dev mailing list