SecureBlackbox 2020 Python Edition

Questions / Feedback?

execute_ssh_command Method

Sends an SSH command to the server in the middle of SFTP session.

Syntax

def execute_ssh_command(command: str) -> bytes: ...

Remarks

Use this command to send an SSH command to the server in the middle of an SFTP session. The command is executed in a secondary channel, so the SFTP connection is not affected.

This method is suitable for simple commands that do not require interaction with the user. The call returns the command output.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 Python Edition - Version 20.0 [Build 8154]