The script runs ON Dankclaw but was calling ssh() to SSH back to dankclaw for service management. Nested SSH fails (no key auth for localhost). Replaced ssh() with local() using subprocess.run(shell=True) for systemctl and sed commands.