vincentbernat.i3wm-configur.../systemd/ssh-agent.service
Vincent Bernat ef01f3212e systemd: restart ssh-agent
Like, when I do `pkill ssh`.
2020-04-20 23:13:13 +02:00

9 lines
238 B
Desktop File

[Unit]
Description=SSH key agent
[Service]
Type=simple
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStartPre=/usr/bin/dbus-update-activation-environment SSH_AUTH_SOCK
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
Restart=always