summaryrefslogtreecommitdiff
path: root/modules/profiles/files/ssh-agent.service
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2021-12-14 00:58:22 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2021-12-14 02:16:16 +0100
commite3c15ec94649c7ba079c3332fc4afc5bda0b4b5a (patch)
tree215c9048c49c5fbcab9484893024b0bd42f74d9f /modules/profiles/files/ssh-agent.service
parentMerge branch 'raspi' (diff)
downloadwebdav_server-e3c15ec94649c7ba079c3332fc4afc5bda0b4b5a.tar.gz
webdav_server-e3c15ec94649c7ba079c3332fc4afc5bda0b4b5a.tar.xz
Migrate stuff from ansible.
Diffstat (limited to 'modules/profiles/files/ssh-agent.service')
-rw-r--r--modules/profiles/files/ssh-agent.service13
1 files changed, 13 insertions, 0 deletions
diff --git a/modules/profiles/files/ssh-agent.service b/modules/profiles/files/ssh-agent.service
new file mode 100644
index 0000000..d49edc6
--- /dev/null
+++ b/modules/profiles/files/ssh-agent.service
@@ -0,0 +1,13 @@
+# https://unix.stackexchange.com/questions/339840/how-to-start-and-use-ssh-agent-as-systemd-service
+
+[Unit]
+Description=SSH key agent
+
+[Service]
+Type=simple
+Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
+# ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
+ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
+
+[Install]
+WantedBy=default.target