summarylogtreecommitdiffstats
path: root/sshdgenkeys.service
diff options
context:
space:
mode:
authorTimothée Ravier2013-11-03 19:42:41 +0100
committerTimothée Ravier2013-11-03 19:42:41 +0100
commita78a337a56844825ae9d9df73bd467bba148ee2a (patch)
treee963c65e4b21407d31129757f5fab8939327e6b1 /sshdgenkeys.service
downloadaur-a78a337a56844825ae9d9df73bd467bba148ee2a.tar.gz
General update: SELinux userspace & pkg renaming
Diffstat (limited to 'sshdgenkeys.service')
-rw-r--r--sshdgenkeys.service15
1 files changed, 15 insertions, 0 deletions
diff --git a/sshdgenkeys.service b/sshdgenkeys.service
new file mode 100644
index 000000000000..8c27d7110060
--- /dev/null
+++ b/sshdgenkeys.service
@@ -0,0 +1,15 @@
+[Unit]
+Description=SSH Key Generation
+ConditionPathExists=|!/etc/ssh/ssh_host_key
+ConditionPathExists=|!/etc/ssh/ssh_host_key.pub
+ConditionPathExists=|!/etc/ssh/ssh_host_ecdsa_key
+ConditionPathExists=|!/etc/ssh/ssh_host_ecdsa_key.pub
+ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key
+ConditionPathExists=|!/etc/ssh/ssh_host_dsa_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