jonathancammack / rpms / openssh

Forked from rpms/openssh 8 months ago
Clone
DistroBaker d029bb
# Requires SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
DistroBaker d029bb
# set in environment, handled for example in plasma via
DistroBaker d029bb
# /etc/xdg/plasma-workspace/env/ssh-agent.sh
DistroBaker d029bb
[Unit]
DistroBaker d029bb
ConditionEnvironment=!SSH_AGENT_PID
DistroBaker d029bb
Description=OpenSSH key agent
DistroBaker d029bb
Documentation=man:ssh-agent(1) man:ssh-add(1) man:ssh(1)
DistroBaker d029bb
DistroBaker d029bb
[Service]
DistroBaker d029bb
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
DistroBaker d029bb
ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
DistroBaker d029bb
PassEnvironment=SSH_AGENT_PID
DistroBaker d029bb
SuccessExitStatus=2
DistroBaker d029bb
Type=forking