Package | Description |
---|---|
org.dromara.hutool.extra.ftp |
基于Apache Commons Net封装的FTP工具
|
org.dromara.hutool.extra.ssh |
Jsch封装,包括端口映射、SFTP封装等,入口为JschUtil
|
org.dromara.hutool.extra.ssh.engine.ganymed |
Ganymed-SSH2(https://www.ganymed.ethz.ch/ssh2/) 引擎封装
|
org.dromara.hutool.extra.ssh.engine.jsch |
Jsch(http://www.jcraft.com/jsch/) 引擎封装
|
org.dromara.hutool.extra.ssh.engine.mina |
Apache MINA SSHD(https://mina.apache.org/sshd-project/) 引擎封装
|
org.dromara.hutool.extra.ssh.engine.sshj |
SSH 引擎封装
|
Modifier and Type | Method and Description |
---|---|
Connector |
FtpConfig.getConnector()
获取连接信息
|
Modifier and Type | Method and Description |
---|---|
static CommonsFtp |
CommonsFtp.of(Connector connector,
Charset charset)
构造
|
static CommonsFtp |
CommonsFtp.of(Connector connector,
Charset charset,
String serverLanguageCode,
String systemKey)
构造
|
static CommonsFtp |
CommonsFtp.of(Connector connector,
Charset charset,
String serverLanguageCode,
String systemKey,
FtpMode mode)
构造
|
FtpConfig |
FtpConfig.setConnector(Connector connector)
设置连接信息
|
Constructor and Description |
---|
FtpConfig(Connector connector,
Charset charset)
构造
|
FtpConfig(Connector connector,
Charset charset,
String serverLanguageCode,
String systemKey)
构造
|
Modifier and Type | Method and Description |
---|---|
static Connector |
Connector.of()
创建Connector,所有参数为默认,用于构建模式
|
static Connector |
Connector.of(String host,
int port,
String user,
String password)
创建Connector
|
static Connector |
Connector.of(String host,
int port,
String user,
String password,
long timeout)
创建Connector
|
Connector |
Connector.setHost(String host)
设定主机名
|
Connector |
Connector.setPassword(String password)
设定密码
|
Connector |
Connector.setPort(int port)
设定端口号
|
Connector |
Connector.setTimeout(long timeout)
设置连接超时时间
|
Connector |
Connector.setUser(String name)
设定用户名
|
Modifier and Type | Method and Description |
---|---|
static ch.ethz.ssh2.Connection |
GanymedUtil.openConnection(Connector connector)
打开SSH连接
|
Constructor and Description |
---|
GanymedSession(Connector connector)
构造
|
Modifier and Type | Method and Description |
---|---|
static com.jcraft.jsch.Session |
JschUtil.openSession(Connector connector)
打开Session会话
|
Constructor and Description |
---|
JschSession(Connector connector)
构造
|
Modifier and Type | Method and Description |
---|---|
static org.apache.sshd.client.session.ClientSession |
MinaUtil.openSession(org.apache.sshd.client.SshClient sshClient,
Connector connector)
打开一个新的Session
|
Constructor and Description |
---|
MinaSession(Connector connector)
构造
|
Modifier and Type | Method and Description |
---|---|
static net.schmizz.sshj.SSHClient |
SshjUtil.openClient(Connector connector)
打开客户端连接
|
Constructor and Description |
---|
SshjSession(Connector connector)
构造
|
Copyright © 2025. All rights reserved.