Running systemctl on a Remote System
You can run systemctl
commands on a remote system where the sshd
service is running. Include the -H
option and the hostname with the systemctl
command to control the system remotely.
For more information see the systemctl(1)
manual page.
The following example shows how to check the status of the crond
service on a remote system.