summaryrefslogtreecommitdiff
path: root/src/systemd/dropbearkey.service
diff options
context:
space:
mode:
Diffstat (limited to 'src/systemd/dropbearkey.service')
-rw-r--r--src/systemd/dropbearkey.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/systemd/dropbearkey.service b/src/systemd/dropbearkey.service
new file mode 100644
index 000000000..770641c8b
--- /dev/null
+++ b/src/systemd/dropbearkey.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Dropbear SSH Key Generation
+ConditionPathExists=|!/etc/dropbear/dropbear_rsa_host_key
+
+[Service]
+ExecStart=/usr/bin/dropbearkey -t rsa -f /etc/dropbear/dropbear_rsa_host_key
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target
+