Java实践-远程调用Shell脚本并获取输出信息

1、添加依赖

1
2
3
4
5
6
7
8
9
10
<dependency>
<groupId>ch.ethz.ganymed</groupId>
<artifactId>ganymed-ssh2</artifactId>
<version>262</version>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
<version>2.6</version>
</dependency>

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×