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
addressand perform a full reboot the system, equivalent to the commandsystemctl 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
addressand perform a soft restart of the service, equivalent tosystemctl 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