diff options
Diffstat (limited to 'sshdgenkeys.service')
-rw-r--r-- | sshdgenkeys.service | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sshdgenkeys.service b/sshdgenkeys.service index cf77872f0365..c3ebb1303543 100644 --- a/sshdgenkeys.service +++ b/sshdgenkeys.service @@ -6,12 +6,14 @@ ConditionPathExists=|!/etc/ssh/ssh_host_ecdsa_key ConditionPathExists=|!/etc/ssh/ssh_host_ecdsa_key.pub ConditionPathExists=|!/etc/ssh/ssh_host_ed25519_key ConditionPathExists=|!/etc/ssh/ssh_host_ed25519_key.pub -ConditionPathExists=|!/etc/ssh/ssh_host_key -ConditionPathExists=|!/etc/ssh/ssh_host_key.pub ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key.pub [Service] -ExecStart=/usr/bin/hpnssh-keygen -A +# this is horrifying, but doesn't require backflips with prefixes +ExecStart=/usr/bin/hpnssh-keygen -f /etc/ssh/ssh_host_ed25519_key -t ed25519 +ExecStart=/usr/bin/hpnssh-keygen -f /etc/ssh/ssh_host_ecdsa_key -t ecdsa -b 521 +ExecStart=/usr/bin/hpnssh-keygen -f /etc/ssh/ssh_host_rsa_key -t rsa -b 4096 +ExecStart=/usr/bin/hpnssh-keygen -f /etc/ssh/ssh_host_dsa_key -t dsa Type=oneshot RemainAfterExit=yes |