| 接口 | 说明 |
|---|---|
| JschSftpCommand<T> |
SFTP操作接口
|
| 类 | 说明 |
|---|---|
| JschSftpHelper |
JSch SFTP 助手
//实例化JschHelper(可单例)
JschHelper jsch = new JschHelper();
//实例化JschSftpHelper(可单例)
JschSftpHelper helper = new JschSftpHelper();
helper.setJsch(jsch);
helper.setHost("192.168.163.136");
helper.setPort(17799);
helper.setUsername("root");
helper.setPassword("root");
helper.setTimeout(5000);
//创建连接, 执行一系列操作, 关闭连接
String result = helper.command(new JschSftpCommand
|