|
Rex Dieter |
5f230a |
# Requires SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
|
|
Rex Dieter |
5f230a |
# set in environment, handled for example in plasma via
|
|
Rex Dieter |
5f230a |
# /etc/xdg/plasma-workspace/env/ssh-agent.sh
|
|
Rex Dieter |
5f230a |
[Unit]
|
|
Rex Dieter |
5f230a |
ConditionEnvironment=!SSH_AGENT_PID
|
|
Rex Dieter |
5f230a |
Description=OpenSSH key agent
|
|
Rex Dieter |
5f230a |
Documentation=man:ssh-agent(1) man:ssh-add(1) man:ssh(1)
|
|
Rex Dieter |
5f230a |
|
|
Rex Dieter |
5f230a |
[Service]
|
|
Rex Dieter |
5f230a |
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
|
|
Rex Dieter |
5f230a |
ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
|
|
Rex Dieter |
5f230a |
PassEnvironment=SSH_AGENT_PID
|
|
Rex Dieter |
5f230a |
SuccessExitStatus=2
|
|
Rex Dieter |
5f230a |
Type=forking
|