@user61766 true, but sudo can be configured not to require a password for certain commands for certain users. You can configure on the remote server(s) a dedicated user for these automation tasks with ssh keys and and ad-hoc
sudo
configuration.