ssh module

Utilities for communicating with Presto over SSH.

presto.ssh.reboot(address)

Reboot the Linux system on the hardware.

Establish an SSH connection to address and perform a full reboot the system, equivalent to the command systemctl reboot. The system should be back online after about one minute.

To instead restart only the service running on the system, see restart().

Parameters:

address (str) – IP address or hostname of the hardware

presto.ssh.restart(address)

Restart the service running on the hardware.

Establish an SSH connection to address and perform a soft restart of the service, equivalent to systemctl restart <service-name>. The service should be back online immediately.

To instead perform a full reboot of the Linux system, see reboot().

Parameters:

address (str) – IP address or hostname of the hardware