From 415d616004de7a6d999a38d93bbbc5a34b460751 Mon Sep 17 00:00:00 2001 From: Johannes Löthberg Date: Wed, 6 Aug 2014 04:30:10 +0100 Subject: openssh → openssh-princ-fp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sshdgenkeys.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 sshdgenkeys.service (limited to 'sshdgenkeys.service') 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 -- cgit v1.2.3-70-g09d2