vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
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)
Anthony Rabbito 941789
Requires=ssh-agent.socket
Rex Dieter 5f230a
Rex Dieter 5f230a
[Service]
Rex Dieter 5f230a
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
Anthony Rabbito 11b870
ExecStartPre=/usr/bin/rm -f $SSH_AUTH_SOCK
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
Anthony Rabbito 941789
Anthony Rabbito 941789
[Install]
Anthony Rabbito 941789
Also=ssh-agent.socket