public interface ChannelFactory
The SSH2 protocol supports many different channel types including sesisons, port forwarding and x11 forwarding; most channels are requested by the client and created by the server however it is possible for the server to request any type of channel from the client, this interface defines the contract for supporting a standard and custom channel creation.
|Modifier and Type||Method and Description|
Create an instance of an SSH channel.
Return the supported channel types.
Ssh2Channel createChannel(String channeltype, byte requestdata) throws SshException, ChannelOpenException
Create an instance of an SSH channel. The new instance should be returned, if for any reason the channel cannot be created either because the channel is not supported or there are not enough resources an exception is thrown.
Copyright © 2023. All rights reserved.