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

IChannelDirectTcpip

A "direct-tcpip" SSH channel.
bool IsOpen { get; }

Gets a value indicating whether this channel is open.

uint LocalChannelNumber { get; }

Gets the local channel number.

Occurs when an exception is thrown while processing channel messages.

void Bind()

Binds the channel to the remote host.

void Close()

Closes the channel.

void Open(string remoteHost, uint port, IForwardedPort forwardedPort, Socket socket)

Opens a channel for a locally forwarded TCP/IP port.