in reply to Re^12: Problem using Net::OpenSSH->capture to su to another user
in thread Problem using Net::OpenSSH->capture to su to another user
Those errors are generated because you are requesting a TTY on the remote side but then there is no TTY on the local side and so when ssh tries to forward the ioctls, it gets that error back from the OS.
Other than redirecting STDERR to /dev/null (which is what stderr_discard actually does) I don't see how that message can be suppresed.
Use strace to see where are these msgs originate and where they go.
Update: Updating the local OpenSSH may also help as new versions generate fewer of these useless warnings.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^14: Problem using Net::OpenSSH->capture to su to another user
by tim.culhane (Initiate) on Jun 06, 2014 at 08:22 UTC |