Package | Description |
---|---|
org.dromara.hutool.extra.ssh.engine.jsch |
Jsch(http://www.jcraft.com/jsch/) 引擎封装
|
Modifier and Type | Method and Description |
---|---|
JschSftp |
JschSftp.get(String src,
OutputStream out)
获取远程文件
|
JschSftp |
JschSftp.get(String src,
String dest)
获取远程文件
|
static JschSftp |
JschSftp.of(String sshHost,
int sshPort,
String sshUser,
String sshPass)
构造
|
static JschSftp |
JschSftp.of(String sshHost,
int sshPort,
String sshUser,
String sshPass,
Charset charset)
构造
|
JschSftp |
JschSession.openSftp(Charset charset)
打开SFTP会话
|
JschSftp |
JschSftp.put(InputStream srcStream,
String destPath,
com.jcraft.jsch.SftpProgressMonitor monitor,
JschSftp.Mode mode)
将本地数据流上传到目标服务器,目标文件名为destPath,目标必须为文件
|
JschSftp |
JschSftp.put(String srcFilePath,
String destPath)
将本地文件上传到目标服务器,目标文件名为destPath,若destPath为目录,则目标文件名将与srcFilePath文件名相同。
|
JschSftp |
JschSftp.put(String srcFilePath,
String destPath,
JschSftp.Mode mode)
将本地文件上传到目标服务器,目标文件名为destPath,若destPath为目录,则目标文件名将与srcFilePath文件名相同。
|
JschSftp |
JschSftp.put(String srcFilePath,
String destPath,
com.jcraft.jsch.SftpProgressMonitor monitor,
JschSftp.Mode mode)
将本地文件上传到目标服务器,目标文件名为destPath,若destPath为目录,则目标文件名将与srcFilePath文件名相同。
|
JschSftp |
JschSftp.reconnectIfTimeout() |
Copyright © 2025. All rights reserved.