diff options
Diffstat (limited to 'meta/recipes-connectivity/openssh/openssh/sshdgenkeys.service')
-rw-r--r-- | meta/recipes-connectivity/openssh/openssh/sshdgenkeys.service | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh/sshdgenkeys.service b/meta/recipes-connectivity/openssh/openssh/sshdgenkeys.service new file mode 100644 index 0000000000..c21d70baf0 --- /dev/null +++ b/meta/recipes-connectivity/openssh/openssh/sshdgenkeys.service | |||
@@ -0,0 +1,10 @@ | |||
1 | [Unit] | ||
2 | Description=OpenSSH Key Generation | ||
3 | ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key | ||
4 | ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key | ||
5 | ConditionPathExists=|!/etc/ssh/ssh_host_ecdsa_key | ||
6 | |||
7 | [Service] | ||
8 | ExecStart=@BINDIR@/ssh-keygen -A | ||
9 | Type=oneshot | ||
10 | RemainAfterExit=yes | ||