From 0e96cf2c85702bb1fbe3db6ea251cde614a3df71 Mon Sep 17 00:00:00 2001 From: André Fabian Silva Delgado Date: Mon, 17 Nov 2014 21:54:24 -0200 Subject: openssh-knock: add new package to [pcr] --- pcr/openssh-knock/sshdgenkeys.service | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 pcr/openssh-knock/sshdgenkeys.service (limited to 'pcr/openssh-knock/sshdgenkeys.service') diff --git a/pcr/openssh-knock/sshdgenkeys.service b/pcr/openssh-knock/sshdgenkeys.service new file mode 100644 index 000000000..1d01b7acf --- /dev/null +++ b/pcr/openssh-knock/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-54-g00ecf