parent
4ed224d306
commit
33bcafe714
3 changed files with 21 additions and 3 deletions
@ -0,0 +1 @@ |
||||
../ssh-agent.service |
@ -0,0 +1,13 @@ |
||||
[Unit] |
||||
Description=SSH publickey authentication agent |
||||
|
||||
[Service] |
||||
Type=simple |
||||
Environment=SSH_AUTH_SOCK=%t/ssh-agent.sock |
||||
ExecStart=/usr/bin/ssh-agent -D -a ${SSH_AUTH_SOCK} |
||||
ExecStartPost=/usr/bin/systemctl --user set-environment SSH_AUTH_SOCK=${SSH_AUTH_SOCK} |
||||
ExecStopPre=/usr/bin/systemctl --user unset-environment SSH_AUTH_SOCK=${SSH_AUTH_SOCK} |
||||
|
||||
[Install] |
||||
WantedBy=default.target |
||||
|
Loading…
Reference in new issue