X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-starlingx%2Fmeta-stx-integ%2Frecipes-connectivity%2Fopenssh%2Ffiles%2Fstx%2Fsshd-keygen.service;fp=meta-starlingx%2Fmeta-stx-integ%2Frecipes-connectivity%2Fopenssh%2Ffiles%2Fstx%2Fsshd-keygen.service;h=77cffeb0b2008812e55e3b3939c9da5f65886977;hb=e0634c6eaf2fe2641a0fb90e84a5defb880b1335;hp=0000000000000000000000000000000000000000;hpb=210d0f78485e760dffcdd3f630f59cec797f3f11;p=pti%2Frtp.git diff --git a/meta-starlingx/meta-stx-integ/recipes-connectivity/openssh/files/stx/sshd-keygen.service b/meta-starlingx/meta-stx-integ/recipes-connectivity/openssh/files/stx/sshd-keygen.service new file mode 100644 index 0000000..77cffeb --- /dev/null +++ b/meta-starlingx/meta-stx-integ/recipes-connectivity/openssh/files/stx/sshd-keygen.service @@ -0,0 +1,11 @@ +[Unit] +Description=OpenSSH Server Key Generation +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] +ExecStart=/usr/sbin/sshd-keygen +Type=oneshot +RemainAfterExit=yes