Hi ,
 
I am trying to run an interactive su and sudo command from my webapplication on 
a remote host which is Linux.

Since this an interactive command and prompts for the password, I have set the 
pty as shown below.
 
((ChannelExec)channel).setPty(true);
 
The su command works, but the sudo command is irresponsive(hangs).
Am I missing something here like setting the pty type, dimensions etc. 
 
thanks,
Prakash

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security 
threats, fraudulent activity, and more. Splunk takes this data and makes 
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to