Method OpenUnixSocketTunnelAsync
- Namespace
- SshSharp
- Assembly
- SshSharp.dll
OpenUnixSocketTunnelAsync(string, CancellationToken)
Opens a connection from the server to the Unix domain socket at path on the server
(direct-streamlocal@openssh.com, what ssh -L port:/path uses), for example a database or Docker socket.
public Task<Stream> OpenUnixSocketTunnelAsync(string path, CancellationToken cancellationToken = default)
Parameters
pathstringcancellationTokenCancellationToken
Returns
Exceptions
- SshException
The server refused (sshd's
AllowStreamLocalForwarding) or could not connect.