Hi,
When I run sudo commands on a remote host using the jsch API's I get the following error.
"sudo: no tty present and no askpass program specified"
But when I set the following pty flag, things work perfectly fine.
((ChannelExec)channel).setPty(false);
Is there any reason why this flag is not set by default. ?
What are the implications if I set this flag in terms of security and performance. ?
thanks,
Prakash
|