diff options
Diffstat (limited to 'meta/recipes-connectivity/openssh/openssh/sshdgenkeys.service')
-rw-r--r-- | meta/recipes-connectivity/openssh/openssh/sshdgenkeys.service | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/meta/recipes-connectivity/openssh/openssh/sshdgenkeys.service b/meta/recipes-connectivity/openssh/openssh/sshdgenkeys.service index 148e6ad63a..603c33787f 100644 --- a/meta/recipes-connectivity/openssh/openssh/sshdgenkeys.service +++ b/meta/recipes-connectivity/openssh/openssh/sshdgenkeys.service | |||
@@ -1,22 +1,8 @@ | |||
1 | [Unit] | 1 | [Unit] |
2 | Description=OpenSSH Key Generation | 2 | Description=OpenSSH Key Generation |
3 | RequiresMountsFor=/var /run | 3 | RequiresMountsFor=/var /run |
4 | ConditionPathExists=!/var/run/ssh/ssh_host_rsa_key | ||
5 | ConditionPathExists=!/var/run/ssh/ssh_host_dsa_key | ||
6 | ConditionPathExists=!/var/run/ssh/ssh_host_ecdsa_key | ||
7 | ConditionPathExists=!/var/run/ssh/ssh_host_ed25519_key | ||
8 | ConditionPathExists=!/etc/ssh/ssh_host_rsa_key | ||
9 | ConditionPathExists=!/etc/ssh/ssh_host_dsa_key | ||
10 | ConditionPathExists=!/etc/ssh/ssh_host_ecdsa_key | ||
11 | ConditionPathExists=!/etc/ssh/ssh_host_ed25519_key | ||
12 | 4 | ||
13 | [Service] | 5 | [Service] |
14 | Environment="SYSCONFDIR=/etc/ssh" | 6 | ExecStart=@LIBEXECDIR@/sshd_check_keys |
15 | EnvironmentFile=-/etc/default/ssh | ||
16 | ExecStart=@BASE_BINDIR@/mkdir -p $SYSCONFDIR | ||
17 | ExecStart=@BINDIR@/ssh-keygen -q -f ${SYSCONFDIR}/ssh_host_rsa_key -N '' -t rsa | ||
18 | ExecStart=@BINDIR@/ssh-keygen -q -f ${SYSCONFDIR}/ssh_host_dsa_key -N '' -t dsa | ||
19 | ExecStart=@BINDIR@/ssh-keygen -q -f ${SYSCONFDIR}/ssh_host_ecdsa_key -N '' -t ecdsa | ||
20 | ExecStart=@BINDIR@/ssh-keygen -q -f ${SYSCONFDIR}/ssh_host_ed25519_key -N '' -t ed25519 | ||
21 | Type=oneshot | 7 | Type=oneshot |
22 | RemainAfterExit=yes | 8 | RemainAfterExit=yes |