<PackageReference Include="SSH.NET" Version="2014.4.6-beta2" />

ForwardedPortDynamic

Provides functionality for 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 ResourceMessages.