Class SshRemoteSocketForwarder
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
A remote Unix-socket forwarding (ssh -R /remote/socket:target) started by ForwardRemoteUnixSocketAsync(string, string, int, CancellationToken):
the server listens on the Unix socket RemoteSocketPath, and each connection made to it is relayed to a TCP port
(LocalHost:LocalPort) or a Unix socket (LocalSocketPath) reached from this machine. Dispose it
to cancel the forwarding on the server and close the forwarded connections.
public sealed class SshRemoteSocketForwarder : IAsyncDisposable
- Inheritance
-
SshRemoteSocketForwarder
- Implements
- Inherited Members
Properties
- ActiveConnections
How many forwarded connections are open now.
- LocalHost
The host connections go to, from this machine; null when they go to LocalSocketPath.
- LocalPort
The port on LocalHost; 0 when connections go to LocalSocketPath.
- LocalSocketPath
The Unix socket on this machine connections go to; null when they go to LocalHost.
- RemoteSocketPath
The Unix socket the server listens on.
Methods
- DisposeAsync()
Cancels the forwarding on the server (
cancel-streamlocal-forward@openssh.com) and closes every forwarded connection.