Ssh.StartIncomingTunnelAsync Method
Namespace: Rebex.Net
Assembly: Rebex.SshShell.dll (version 7.0.9448)
StartIncomingTunnelAsync(IPEndPoint, IPEndPoint, Object)
Begins asynchronous StartIncomingTunnel operation. 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 Task<SshTunnel> StartIncomingTunnelAsync(IPEndPoint remoteEndPoint, IPEndPoint targetEndPoint, object state = null)
Parameters
| Type | Name | Description |
|---|---|---|
| IPEndPoint | remoteEndPoint | Remote endpoint from which to tunnel connections. |
| IPEndPoint | targetEndPoint | Local endpoint to which to tunnel connections. |
| Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
| Type | Description |
|---|---|
| Task<SshTunnel> | A tunnel instance. |
StartIncomingTunnelAsync(String, Int32, IPEndPoint, Object)
Begins asynchronous StartIncomingTunnel operation. 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 Task<SshTunnel> StartIncomingTunnelAsync(string remoteAddress, int remotePort, IPEndPoint targetEndPoint, object state = null)
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. |
| Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
| Type | Description |
|---|---|
| Task<SshTunnel> | A tunnel instance. |
StartIncomingTunnelAsync(IPEndPoint, String, Int32, Object)
Begins asynchronous StartIncomingTunnel operation. 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 Task<SshTunnel> StartIncomingTunnelAsync(IPEndPoint remoteEndPoint, string targetHostName, int targetPort, object state = null)
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. |
| Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
| Type | Description |
|---|---|
| Task<SshTunnel> | A tunnel instance. |
StartIncomingTunnelAsync(String, Int32, String, Int32, Object)
Begins asynchronous StartIncomingTunnel operation. 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 Task<SshTunnel> StartIncomingTunnelAsync(string remoteAddress, int remotePort, string targetHostName, int targetPort, object state = null)
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. |
| Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
| Type | Description |
|---|---|
| Task<SshTunnel> | A tunnel instance. |