[Unit] Description=Regenerate SSH host keys Before=ssh.service ConditionFileIsExecutable=/usr/bin/ssh-keygen [Service] Type=oneshot ExecStart=/usr/lib/raspberrypi-sys-mods/regenerate_ssh_host_keys [Install] WantedBy=multi-user.target