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

bugzilla-daemon at mindrot.org
2002-01-25T23:07:10Z

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