blob: 297ab7550d4d45db592d34fd6b4f46d4f69ce693 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# Enable using: systemd --user enable ssh-agent
# Start immediately using: systemd --user start ssh-agent
# Make sure SSH_AUTH_SOCK is set to "$XDG_RUNTIME_DIR/ssh-agent.socket".
# You can do this by adding it to ~/.profile (the usual way) or
# ~/.pam_environment:
# * "SSH_AUTH_SOCK DEFAULT=${XDG_RUNTIME_DIR}/ssh-agent.socket", or, if it
# doesn't work,
# * "SSH_AUTH_SOCK DEFAULT=/run/user/1000/ssh-agent.socket" (replace "1000"
# with your UID.
[Unit]
Description=OpenSSH agent
[Service]
Type=simple
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStart=/usr/bin/ssh-agent -D -a "$SSH_AUTH_SOCK"
[Install]
WantedBy=default.target
|