Class SshLocalPortForwarder
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
A local port forwarding (ssh -L) started by ForwardLocalPortAsync(IPEndPoint, string, int, CancellationToken): connections to
LocalEndPoint are relayed through the server to RemoteHost:RemotePort. Dispose it to stop
listening and close the forwarded connections.
public sealed class SshLocalPortForwarder : IAsyncDisposable
- Inheritance
-
SshLocalPortForwarder
- Implements
- Inherited Members
Properties
- ActiveConnections
How many forwarded connections are open now.
- LocalEndPoint
The local address and port being listened on (with the actual port when 0 was asked for).
- RemoteHost
Where the server connects each forwarded connection to.
- RemotePort
The port on RemoteHost.
Methods
- DisposeAsync()
Stops listening and closes every forwarded connection.