2021-03-02 23:23:50 +00:00
|
|
|
# Requires SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
|
|
|
# set in environment, handled for example in plasma via
|
|
|
|
# /etc/xdg/plasma-workspace/env/ssh-agent.sh
|
|
|
|
[Unit]
|
|
|
|
ConditionEnvironment=!SSH_AGENT_PID
|
|
|
|
Description=OpenSSH key agent
|
|
|
|
Documentation=man:ssh-agent(1) man:ssh-add(1) man:ssh(1)
|
2022-09-11 14:36:25 +00:00
|
|
|
Requires=ssh-agent.socket
|
2021-03-02 23:23:50 +00:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
|
2022-09-15 12:46:03 +00:00
|
|
|
ExecStartPre=/usr/bin/rm -f $SSH_AUTH_SOCK
|
2023-08-03 08:32:24 +00:00
|
|
|
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
|
2021-03-02 23:23:50 +00:00
|
|
|
PassEnvironment=SSH_AGENT_PID
|
|
|
|
SuccessExitStatus=2
|
2023-08-03 08:32:24 +00:00
|
|
|
Type=simple
|
2022-09-11 14:36:25 +00:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
Also=ssh-agent.socket
|