1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-12 05:40:17 +00:00

add ssh-agent systemd user service

This commit is contained in:
Luna 2021-09-18 17:10:13 +02:00
parent 3c57ca7a15
commit da4831ba79
No known key found for this signature in database
GPG key ID: DE9E9D23CD19A149

View file

@ -0,0 +1,12 @@
[Unit]
Description=SSH key agent
[Service]
Type=simple
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
# DISPLAY required for ssh-askpass to work
Environment=DISPLAY=:0
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
[Install]
WantedBy=default.target