Snippets

Andrew Hawthorne fedora ssh-agent.service

Created by Andrew Hawthorne
[Unit]
Description=OpenSSH private key agent
IgnoreOnIsolate=true

[Service]
Type=forking
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
ExecStartPost=/usr/bin/systemctl --user set-environment SSH_AUTH_SOCK=${SSH_AUTH_SOCK}

[Install]
WantedBy=default.target

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.