added systemd unit to autostart ssh-agent

This commit is contained in:
Gabe Venberg 2023-03-23 21:09:34 -05:00
parent 14e8f5a001
commit 01f3b54adf
4 changed files with 18 additions and 0 deletions

View file

@ -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