Skip to content

Instantly share code, notes, and snippets.

@fionn
Created July 22, 2022 16:49
Show Gist options
  • Save fionn/99635a913d64f1c827cac5679da1ef6a to your computer and use it in GitHub Desktop.
Save fionn/99635a913d64f1c827cac5679da1ef6a to your computer and use it in GitHub Desktop.
Systemd user service for ssh-agent
[Unit]
Description=SSH agent
[Service]
Type=forking
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStart=/usr/bin/ssh-agent -a $SSH_AUTH_SOCK
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment