summaryrefslogtreecommitdiff
path: root/.config/systemd
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2016-12-23 01:07:53 +0200
committerYuval Adam <_@yuv.al>2016-12-23 01:07:53 +0200
commit41bc1b1ddba06de65f3bfec6b9b0c17f93f21aac (patch)
tree08c92167cb159c9d7f82659cf5f3a4ff829b74e6 /.config/systemd
parentfe3c62cd3477ae524346ee0d3ded90899923386d (diff)
Switch to systemd unit based SSH agent
Diffstat (limited to '.config/systemd')
-rw-r--r--.config/systemd/user/ssh-agent.service10
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/systemd/user/ssh-agent.service b/.config/systemd/user/ssh-agent.service
new file mode 100644
index 0000000..87d6c04
--- /dev/null
+++ b/.config/systemd/user/ssh-agent.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=SSH key agent
+
+[Service]
+Type=forking
+Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
+ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
+
+[Install]
+WantedBy=default.target