Ssh.StartOutgoingTunnel Method
Namespace: Rebex.Net
Assembly: Rebex.SshShell.dll (version 7.0.9048)
StartOutgoingTunnel(IPEndPoint, IPEndPoint)
Starts a new outgoing tunnel. Connections to local endpoint will be tunneled through the SSH server to the specified remote endpoint.
Declaration
public SshTunnel StartOutgoingTunnel(IPEndPoint localEndPoint, IPEndPoint targetEndPoint)
Parameters
Type | Name | Description |
---|---|---|
IPEndPoint | localEndPoint | Local endpoint to listen at. |
IPEndPoint | targetEndPoint | Target endpoint to which to tunnel connections. |
Returns
Type | Description |
---|---|
SshTunnel | A tunnel instance. |
StartOutgoingTunnel(String, Int32, String, Int32)
Starts a new outgoing tunnel. Connections to local host/port will be tunneled through the SSH server to the specified remote host/port.
Declaration
public SshTunnel StartOutgoingTunnel(string localHostName, int localPort, string targetHostName, int targetPort)
Parameters
Type | Name | Description |
---|---|---|
String | localHostName | Local hostname to listen at. |
Int32 | localPort | Local port to listen at. |
String | targetHostName | Target hostname to which to tunnel connections. |
Int32 | targetPort | Target port to which to tunnel connections. |
Returns
Type | Description |
---|---|
SshTunnel | A tunnel instance. |
StartOutgoingTunnel(IPEndPoint, String, Int32)
Starts a new outgoing tunnel. Connections to local endpoint will be tunneled through the SSH server to the specified remote host/port.
Declaration
public SshTunnel StartOutgoingTunnel(IPEndPoint localEndPoint, string targetHostName, int targetPort)
Parameters
Type | Name | Description |
---|---|---|
IPEndPoint | localEndPoint | Local endpoint to listen at. |
String | targetHostName | Target hostname to which to tunnel connections. |
Int32 | targetPort | Target port to which to tunnel connections. |
Returns
Type | Description |
---|---|
SshTunnel | A tunnel instance. |