# sshd.path starts sshd only once root or the user agent has an ssh key, so a # new VM has no open port. [Unit] Description=Start sshd once an ssh key is set [Path] PathExists=/home/agent/.ssh/authorized_keys PathExists=/root/.ssh/authorized_keys [Install] WantedBy=multi-user.target