16 lines
393 B
SYSTEMD
16 lines
393 B
SYSTEMD
|
# Requires SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket" to be set in environment
|
||
|
[Unit]
|
||
|
ConditionEnvironment=!SSH_AGENT_PID
|
||
|
Description=OpenSSH key agent
|
||
|
Documentation=man:ssh-agent(1) man:ssh-add(1) man:ssh(1)
|
||
|
|
||
|
[Service]
|
||
|
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
|
||
|
ExecStart=/usr/bin/ssh-agent -D -a ${SSH_AUTH_SOCK}
|
||
|
SuccessExitStatus=2
|
||
|
Type=simple
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=default.target
|
||
|
|