Source: factory.core/ObjSSH.py
| Method | Signature | Description |
|---|---|---|
| Connect | Connect(server = 'localhost', user = '', password = '', port = 22) |
Connects to the remote server using SSH. |
| cmd_execute | cmd_execute(cmd_to_execute) |
|
| sudo_execute | sudo_execute(cmd_to_execute) |
|
| sudo_execute_file | sudo_execute_file(file_name) |
Executes a file containing commands using sudo privileges. |
| sudo_execute_pip | sudo_execute_pip(file_name) |
Executes the apt-get install command with sudo privilege to install Python packages specified in a text file. |
Connect to a server and execute a command.
Connect to a server and execute a command with sudo.
Connect to a server and execute a script file with sudo.
Connect to a server and install pip packages from a file.