IPWorks SSH 2020 Python Edition

Questions / Feedback?

open_tcp_ip_channel Method

Opens a special TCP/IP tunneling SSHChannel .

Syntax

def open_tcp_ip_channel(dest_host: str, dest_port: int, src_host: str, src_port: int) -> str: ...

Remarks

open_tcp_ip_channel opens a special SSHChannel of type "direct-tcpip". Unlike channels opened by open_channel, "direct-tcpip" channels are secured data tunnels that forward data through the ssh_host to another destination.

DestHost and DestPort represent, respectively, the host name or IP address and the port for which the data of this channel is bound. When open_tcp_ip_channel is called, the ssh_host will attempt to connect to the machine identified by these parameters.

Likewise, SrcHost and SrcPort identify the originator of the data. These may be different from local_host and local_port if the current instance of the class is being used to forward data from another TCP/IP client.

Copyright (c) 2023 /n software inc. - All rights reserved.
IPWorks SSH 2020 Python Edition - Version 20.0 [Build 8501]