aboutsummaryrefslogtreecommitdiff
path: root/SystemD/.config/systemd/user/ssh-agent.service
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2022-01-12 05:39:22 +0000
committerAryadev Chavali <aryadev@aryadevchavali.com>2022-01-12 05:39:22 +0000
commit248a3145c472258acb8d9a7d3496a9a12346d86b (patch)
treeb521033a491a5064d8ed488415223b841dec3777 /SystemD/.config/systemd/user/ssh-agent.service
parent8eddca15ff2c283c0eec6f6bb26644fb0c1b0a1f (diff)
downloaddotfiles-248a3145c472258acb8d9a7d3496a9a12346d86b.tar.gz
dotfiles-248a3145c472258acb8d9a7d3496a9a12346d86b.tar.bz2
dotfiles-248a3145c472258acb8d9a7d3496a9a12346d86b.zip
(SystemD)+ssh-agent service
Integrates into .zshrc to create a consistent ssh experience without the stupid passwords.
Diffstat (limited to 'SystemD/.config/systemd/user/ssh-agent.service')
-rw-r--r--SystemD/.config/systemd/user/ssh-agent.service10
1 files changed, 10 insertions, 0 deletions
diff --git a/SystemD/.config/systemd/user/ssh-agent.service b/SystemD/.config/systemd/user/ssh-agent.service
new file mode 100644
index 0000000..33aaa63
--- /dev/null
+++ b/SystemD/.config/systemd/user/ssh-agent.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=SSH agent
+
+[Service]
+Type=simple
+Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
+ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
+
+[Install]
+WantedBy=default.target \ No newline at end of file