[Unit] Description=Generate SSH host keys if missing Before=ssh.service [Service] Type=oneshot ExecStart=/usr/bin/ssh-keygen -A [Install] WantedBy=multi-user.target