[Unit] Description=ssh-agent [Service] Type=simple Environment=SSH_AUTH_SOCK=%t/ssh-agent Environment=DISPLAY=:0 ExecStartPre=/bin/rm -f $SSH_AUTH_SOCK ExecStart=/usr/bin/ssh-agent -d -a $SSH_AUTH_SOCK [Install] WantedBy=default.target