I am wondering an anyone tell me how to use a pem file with the systemctl command in order to be able to issue a remote command whilst logging in using the pem?
I am running it on Ubuntu 22.04
systemctl -H abc@xyz -I mykey.pem status command.service
- This doesn't work -I isn't an option for systemctl