Ssh.StartIncomingTunnel Method
Namespace: Rebex.Net
Assembly: Rebex.SshShell.dll (version 7.0.9448)
StartIncomingTunnel(IPEndPoint, IPEndPoint)
Starts a new incoming tunnel. Connections to remote endpoint will be tunneled from the SSH server through the local machine to the specified target.
Declaration
public SshTunnel StartIncomingTunnel(IPEndPoint remoteEndPoint, IPEndPoint targetEndPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| IPEndPoint | remoteEndPoint | Remote endpoint from which to tunnel connections. |
| IPEndPoint | targetEndPoint | Local endpoint to which to tunnel connections. |
Returns
| Type | Description |
|---|---|
| SshTunnel | A tunnel instance. |
StartIncomingTunnel(String, Int32, IPEndPoint)
Starts a new incoming tunnel. Connections to remote address/port will be tunneled from the SSH server through the local machine to the specified target.
Declaration
public SshTunnel StartIncomingTunnel(string remoteAddress, int remotePort, IPEndPoint targetEndPoint)
Parameters
| Type | Name | Description |
|---|---|---|
| String | remoteAddress | Remote address from which to tunnel connections. |
| Int32 | remotePort | Remote port from which to tunnel connections. |
| IPEndPoint | targetEndPoint | Local endpoint to which to tunnel connections. |
Returns
| Type | Description |
|---|---|
| SshTunnel | A tunnel instance. |
StartIncomingTunnel(IPEndPoint, String, Int32)
Starts a new incoming tunnel. Connections to remote endpoint will be tunneled from the SSH server through the local machine to the specified target.
Declaration
public SshTunnel StartIncomingTunnel(IPEndPoint remoteEndPoint, string targetHostName, int targetPort)
Parameters
| Type | Name | Description |
|---|---|---|
| IPEndPoint | remoteEndPoint | Remote endpoint from which to tunnel connections. |
| String | targetHostName | Local address to which to tunnel connections. |
| Int32 | targetPort | Local port to which to tunnel connections. |
Returns
| Type | Description |
|---|---|
| SshTunnel | A tunnel instance. |
StartIncomingTunnel(String, Int32, String, Int32)
Starts a new incoming tunnel. Connections to remote endpoint will be tunneled from the SSH server through the local machine to the specified target.
Declaration
public SshTunnel StartIncomingTunnel(string remoteAddress, int remotePort, string targetHostName, int targetPort)
Parameters
| Type | Name | Description |
|---|---|---|
| String | remoteAddress | Remote address from which to tunnel connections. |
| Int32 | remotePort | Remote port from which to tunnel connections. |
| String | targetHostName | Local address to which to tunnel connections. |
| Int32 | targetPort | Local port to which to tunnel connections. |
Returns
| Type | Description |
|---|---|
| SshTunnel | A tunnel instance. |