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

ForwardedPortDynamic

Provides functionality for forwarding connections from the client to destination servers via the SSH server, also known as dynamic port forwarding.
public string BoundHost { get; }

Gets the bound host.

public uint BoundPort { get; }

Gets the bound port.

public ForwardedPortDynamic(uint port)

Initializes a new instance of the ForwardedPortDynamic class.

public ForwardedPortDynamic(string host, uint port)

Initializes a new instance of the ForwardedPortDynamic class.

public void Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.