connected_port Property
This property holds the remote port to which the connection was established.
Syntax
def get_connected_port(ssh_channel_id: int) -> int: ...
Default Value
0
Remarks
This property holds the remote port to which the connection was established. This should match the Port parameter passed to the requestforwarding method.
The ssh_channel_id parameter specifies the index of the item in the array. The size of the array is controlled by the ssh_channel_count property.
This property is read-only.