dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit e9f73f10eacacb2f3f9df0b727279cf1dc44c36c
parent 8e419d5b5574d30f931cc7c1f3112270ea453c67
Author: Chris Bracken <chris@bracken.jp>
Date:   Tue, 17 Dec 2019 19:18:37 -0800

Add systemd config for ssh-agent on login

Sets up ssh-agent as a user-specific service. To set up, run:

    systemctl --user enable ssh-agent

then log out and log back in.

Diffstat:
A.config/systemd/user/default.target.wants/ssh-agent.service | 2++
A.config/systemd/user/ssh-agent.service | 10++++++++++
A.pam_environment | 1+
3 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/.config/systemd/user/default.target.wants/ssh-agent.service b/.config/systemd/user/default.target.wants/ssh-agent.service @@ -0,0 +1 @@ +/home/chris/.config/systemd/user/ssh-agent.service +\ No newline at end of file diff --git a/.config/systemd/user/ssh-agent.service b/.config/systemd/user/ssh-agent.service @@ -0,0 +1,10 @@ +[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 + +[Install] +WantedBy=default.target diff --git a/.pam_environment b/.pam_environment @@ -0,0 +1 @@ +SSH_AUTH_SOCK DEFAULT="${XDG_RUNTIME_DIR}/ssh-agent.socket"