Package | Description |
---|---|
cn.hutool.extra.ssh |
Jsch封装,包括端口映射、SFTP封装等,入口为JschUtil
|
Modifier and Type | Method and Description |
---|---|
static ChannelType |
ChannelType.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ChannelType[] |
ChannelType.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static com.jcraft.jsch.Channel |
JschUtil.createChannel(com.jcraft.jsch.Session session,
ChannelType channelType)
创建Channel连接
|
static com.jcraft.jsch.Channel |
JschUtil.openChannel(com.jcraft.jsch.Session session,
ChannelType channelType)
打开Channel连接
|
static com.jcraft.jsch.Channel |
JschUtil.openChannel(com.jcraft.jsch.Session session,
ChannelType channelType,
int timeout)
打开Channel连接
|
Copyright © 2024. All rights reserved.