summarylogtreecommitdiffstats
path: root/sshdgenkeys.service
diff options
context:
space:
mode:
authorChristian Hesse2015-06-28 23:55:21 +0200
committerChristian Hesse2015-06-28 23:55:21 +0200
commit71a331b81bfd29729c878592c0cb9acfae60ef31 (patch)
tree3724a7c4be219497952eb840044d4f0bf71e3e42 /sshdgenkeys.service
downloadaur-71a331b81bfd29729c878592c0cb9acfae60ef31.tar.gz
initial import of openssh-git 6.8.P1.r125.g51a1c21-1
Diffstat (limited to 'sshdgenkeys.service')
-rw-r--r--sshdgenkeys.service17
1 files changed, 17 insertions, 0 deletions
diff --git a/sshdgenkeys.service b/sshdgenkeys.service
new file mode 100644
index 000000000000..d1e154692c5d
--- /dev/null
+++ b/sshdgenkeys.service
@@ -0,0 +1,17 @@
+[Unit]
+Description=SSH Key Generation
+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
+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/ssh-keygen -A
+Type=oneshot
+RemainAfterExit=yes