Starts a new incoming tunnel. Connections to remote endpoint will be tunneled from the SSH server through the local machine to the specified target.
Namespace:
Rebex.Net
Assembly:
Rebex.SshShell (in Rebex.SshShell.dll)
Syntax
Visual Basic |
---|
Public Function StartIncomingTunnel ( _ remoteEndPoint As IPEndPoint, _ targetHostName As String, _ targetPort As Integer _ ) As SshTunnel |
C# |
---|
public SshTunnel StartIncomingTunnel( IPEndPoint remoteEndPoint, string targetHostName, int targetPort ) |
Parameters
- remoteEndPoint
- Type: System.Net..::..IPEndPoint
Remote endpoint from which to tunnel connections.
- targetHostName
- Type: System..::..String
Local address to which to tunnel connections.
- targetPort
- Type: System..::..Int32
Local port to which to tunnel connections.