[Bug 3369] Local script, invoked via "Match ... exec <script>" is disconnected from stdin/stdout

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Fri Nov 26 22:35:49 AEDT 2021


https://bugzilla.mindrot.org/show_bug.cgi?id=3369

--- Comment #2 from Carl Ponder <cponder at nvidia.com> ---
I've found a suitable workaround for this, by detecting the PTY and
re-directing the input/output to use it:

     PTY=$(ps --no-headers $$ | xargs index 2)
     printf "Enter the password: " > /dev/$PTY
     read -r -s pw < /dev/$PTY

You're welcome to close this as "not a bug" or re-set it to be an
"enhancement request". But I'm still curious why the stdin/stdout are
disabled.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list