<PackageReference Include="SSH.NET" Version="2016.0.0-beta1" />

IChannel

interface IChannel : IDisposable
Represents SSH channel.
bool IsOpen { get; }

Gets a value indicating whether this channel is open.

uint LocalChannelNumber { get; }

Gets the local channel number.

uint LocalPacketSize { get; }

Gets the maximum size of a packet.

uint RemotePacketSize { get; }

Gets the maximum size of a data packet that can be sent using the channel.

Occurs when ChannelCloseMessage message received

Occurs when ChannelDataMessage message received

Occurs when an exception is thrown when processing channel messages.

Occurs when ChannelExtendedDataMessage message received

Occurs when ChannelRequestMessage message received

void Close()

Closes the channel.

void SendData(byte[] data)

Sends a SSH_MSG_CHANNEL_DATA message with the specified payload.

void SendData(byte[] data, int offset, int size)

Sends a SSH_MSG_CHANNEL_DATA message with the specified payload.

void SendEof()

Sends a SSH_MSG_CHANNEL_EOF message to the remote server.