From bb711596c197f3e1b7a98fd9bd791567ce5fff30 Mon Sep 17 00:00:00 2001 From: Donovan Glover Date: Mon, 15 Oct 2018 08:54:25 -0400 Subject: [PATCH] Add ssh-agent service Instead of trying to do something fancy with shell init scripts, we let systemd handle ssh-agent instead. --- .config/systemd/user/ssh-agent.service | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 .config/systemd/user/ssh-agent.service diff --git a/.config/systemd/user/ssh-agent.service b/.config/systemd/user/ssh-agent.service new file mode 100644 index 00000000..8ede8d54 --- /dev/null +++ b/.config/systemd/user/ssh-agent.service @@ -0,0 +1,10 @@ +[Unit] +Description=SSH 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