Created
July 20, 2018 06:48
-
-
Save rdkls/a22553d9f459610a6750cc60589f8301 to your computer and use it in GitHub Desktop.
user systemd service to start ssh-agent
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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