<PackageReference Include="SSH.NET" Version="2024.2.0" />

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 data packet that we can receive using the channel.

uint RemoteChannelNumber { get; }

Gets the remote channel number.

uint RemotePacketSize { get; }

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

Occurs when ChannelCloseMessage is received.

Occurs when ChannelDataMessage is received.

Occurs when an exception is thrown when processing channel messages.

Occurs when ChannelExtendedDataMessage is received.

Occurs when ChannelRequestMessage is received.

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.