You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mina.apache.org by "Ma, Qiang (Mark)" <qi...@telenavsoftware.com> on 2022/05/13 10:11:54 UTC
'tty' Issue of Apache Mina SSHD
Hi,
I got a problem with using Mina SSHD. I used clientSession.createExecChannel("sudo su someuser") , the stderr from remote server was "sudo: sorry, you must have a tty to run sudo".
How can I create pseudo-teletype to successfully "sudo su someuser" and execute continuous commands?
I am looking forward to your reply.
Thanks
Mark