Execute a command on the SSH server. A new .Channel is opened and the requested command is executed. The command’s input and output streams are returned as Python file-like objects representing stdin, stdout, and stderr.
Parameters: | |
---|---|
Returns: | the stdin, stdout, and stderr of the executing command, as a 3-tuple |
Raises SSHException: | |
if the server fails to execute the command |