SshSession.OpenTcpIpTunnel Method
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9119)
OpenTcpIpTunnel(IPEndPoint)
Opens an outgoing TCP/IP tunnel to the specified remote endpoint.
Declaration
public SshChannel OpenTcpIpTunnel(IPEndPoint remoteEP)
Parameters
Type | Name | Description |
---|---|---|
IPEndPoint | remoteEP | Remote endpoint. |
Returns
Type | Description |
---|---|
SshChannel | SSH channel. |
OpenTcpIpTunnel(String, Int32)
Opens an outgoing TCP/IP tunnel to the specified remote endpoint.
Declaration
public SshChannel OpenTcpIpTunnel(string hostname, int port)
Parameters
Type | Name | Description |
---|---|---|
String | hostname | Hostname. |
Int32 | port | Port. |
Returns
Type | Description |
---|---|
SshChannel | SSH channel. |