My Profile Photo

Sheogorath's Blog

Using systemctl to control remote systems

Today I learned that the systemctl-CLI can be used to manage remote machines using the -H parameter without any special setup. systemctl will just utilise SSH to connect to the remote machine’s systemd services.

systemctl -H remotehost.example status

I came across this while building some local scripts for system management and shared it on Mastodon already.