13 lines
231 B
SYSTEMD
13 lines
231 B
SYSTEMD
|
[Unit]
|
||
|
Description=SSH key agent
|
||
|
|
||
|
[Service]
|
||
|
Type=forking
|
||
|
Environment=SSH_AUTH_SOCK=%h/.ssh/ssh_auth_sock
|
||
|
ExecStartPre=/usr/bin/rm -f $SSH_AUTH_SOCK
|
||
|
ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=default.target
|
||
|
|