diff options
author | Johannes Löthberg <johannes@kyriasis.com> | 2014-08-06 04:30:10 +0100 |
---|---|---|
committer | Johannes Löthberg <johannes@kyriasis.com> | 2015-06-01 16:03:41 +0200 |
commit | 415d616004de7a6d999a38d93bbbc5a34b460751 (patch) | |
tree | 3d0709fda1f74495427ad16b5f3951b05cdf50d2 /sshdgenkeys.service | |
download | pkgbuilds-415d616004de7a6d999a38d93bbbc5a34b460751.tar.xz |
openssh → openssh-princ-fp
Diffstat (limited to 'sshdgenkeys.service')
-rw-r--r-- | sshdgenkeys.service | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sshdgenkeys.service b/sshdgenkeys.service new file mode 100644 index 0000000..1d01b7a --- /dev/null +++ b/sshdgenkeys.service @@ -0,0 +1,17 @@ +[Unit] +Description=SSH Key Generation +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 +ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key +ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key.pub +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 + +[Service] +ExecStart=/usr/bin/ssh-keygen -A +Type=oneshot +RemainAfterExit=yes |