When users run the actions-runner inside a container, this action won't work because systemd is not available.
apt, may not be available either, if the base image is i.e. CentOS or RHEL.
A static binary for SSHD or an SSHD replacement that is compatible with the .ssh folder may be an alternative.