阅读背景:

无法通过SSH从JAVA程序进行交互

来源:互联网 

I am doing SSH with my linux server via a java program , I am able to execute the commands like shell scripts. But the problem is whenever I am executing a particular shell script it is giving an option to select between yes or no , now from my java console I am selecting yes but this is not actually interacting with the linux server. How to do this job via a java programming? if you have any code spake please share . I am shairing my code for doing the SSH.I am doing SSH with my linux server via a java




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: