Skip to content

Instantly share code, notes, and snippets.

@rdkls
Created July 20, 2018 06:48
Show Gist options
  • Save rdkls/a22553d9f459610a6750cc60589f8301 to your computer and use it in GitHub Desktop.
Save rdkls/a22553d9f459610a6750cc60589f8301 to your computer and use it in GitHub Desktop.
user systemd service to start ssh-agent
in ~/.config/systemd/user/ssh-agent.service
[Unit]
Description=SSH key 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