SSHChannel(hostname, username=None, password=None, script_dir=None, envs=None, skip_auth=False, **kwargs)¶
SSH persistent channel. This enables remote execution on sites accessible via ssh. It is assumed that the user has setup host keys so as to ssh to the remote host. Which goes to say that the following test on the commandline should work :
>>> ssh <username>@<hostname>
__init__(hostname, username=None, password=None, script_dir=None, envs=None, skip_auth=False, **kwargs)¶
Initialize a persistent connection to the remote system. We should know at this point whether ssh connectivity is possible
Parameters: hostname (-) – Hostname
- username (string) : Username on remote system
- password (string) : Password for remote system
- script_dir (string) : Full path to a script dir where generated scripts could be sent to.
- envs (dict) : A dictionary of environment variables to be set when executing commands
__init__(hostname[, username, password, …])
Initialize a persistent connection to the remote system.
Closes the channel.
execute_no_wait(cmd[, walltime, envs])
Execute asynchronousely without waiting for exitcode
execute_wait(cmd[, walltime, envs])
Synchronously execute a commandline string on the shell.
Transport file on the remote side to a local directory
Transport a local file to a directory on a remote machine
This is a property.