diff --git a/sshd-keygen.service b/sshd-keygen.service index a27d4f6..77cffeb 100644 --- a/sshd-keygen.service +++ b/sshd-keygen.service @@ -1,8 +1,8 @@ [Unit] Description=OpenSSH Server Key Generation -ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key -ConditionPathExists=|!/etc/ssh/ssh_host_ecdsa_key -ConditionPathExists=|!/etc/ssh/ssh_host_ed25519_key +ConditionFileNotEmpty=|!/etc/ssh/ssh_host_rsa_key +ConditionFileNotEmpty=|!/etc/ssh/ssh_host_ecdsa_key +ConditionFileNotEmpty=|!/etc/ssh/ssh_host_ed25519_key PartOf=sshd.service sshd.socket [Service]