summaryrefslogtreecommitdiffstats
path: root/remote/modules/ssh-auth-keys/data/etc/systemd
diff options
context:
space:
mode:
authorJonathan Bauer2015-02-09 17:32:57 +0100
committerJonathan Bauer2015-02-09 17:32:57 +0100
commitedff8dc5d0fb7c88942c451a1b1e6d1b426f6a0e (patch)
tree57306720aa6ed9a5df65806438603df0705f5343 /remote/modules/ssh-auth-keys/data/etc/systemd
parent[systemd] force reset on the tty before it is spawned (diff)
downloadtm-scripts-edff8dc5d0fb7c88942c451a1b1e6d1b426f6a0e.tar.gz
tm-scripts-edff8dc5d0fb7c88942c451a1b1e6d1b426f6a0e.tar.xz
tm-scripts-edff8dc5d0fb7c88942c451a1b1e6d1b426f6a0e.zip
[ssh-auth-keys] static module to copy keys from /root/.ssh/authorized_keys.d/ into /root/.ssh/authorized_keys
Diffstat (limited to 'remote/modules/ssh-auth-keys/data/etc/systemd')
l---------remote/modules/ssh-auth-keys/data/etc/systemd/system/basic.target.wants/ssh-auth-keys1
-rw-r--r--remote/modules/ssh-auth-keys/data/etc/systemd/system/ssh-auth-keys9
2 files changed, 10 insertions, 0 deletions
diff --git a/remote/modules/ssh-auth-keys/data/etc/systemd/system/basic.target.wants/ssh-auth-keys b/remote/modules/ssh-auth-keys/data/etc/systemd/system/basic.target.wants/ssh-auth-keys
new file mode 120000
index 00000000..ea20ff73
--- /dev/null
+++ b/remote/modules/ssh-auth-keys/data/etc/systemd/system/basic.target.wants/ssh-auth-keys
@@ -0,0 +1 @@
+../ssh-auth-keys \ No newline at end of file
diff --git a/remote/modules/ssh-auth-keys/data/etc/systemd/system/ssh-auth-keys b/remote/modules/ssh-auth-keys/data/etc/systemd/system/ssh-auth-keys
new file mode 100644
index 00000000..14b12bc5
--- /dev/null
+++ b/remote/modules/ssh-auth-keys/data/etc/systemd/system/ssh-auth-keys
@@ -0,0 +1,9 @@
+[Unit]
+Description=Enable SSH keys in authorized_keys.d/ folder
+Wants=basic.target
+Before=basic.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/opt/openslx/scripts/systemd-ssh_auth_keys