IPWorks SSH 2020 Python Edition

Questions / Feedback?

open_channel Method

Opens a new SSHChannel .

Syntax

def open_channel(channel_type: str) -> str: ...

Remarks

The SSH 2.0 specification allows for multiple channels to be opened over a single TCP/IP connection. The channels property represents the channels that are currently open. A new SSHChannel can be opened with open_channel.

ChannelType represents the type of SSH channel to be opened. The most common type of channel is "session". To open a channel of type "direct-tcpip", use open_tcp_ip_channel.

If the call to open_channel succeeds, an SSHChannel will be created and added to the channels collection.

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