Browse Source

Add a ssh-agent systemd service

master
Jonathan Tremesaygues 11 months ago
parent
commit
e0ed9aa794
  1. 0
      dot_config/systemd/.keep
  2. 0
      dot_config/systemd/user/.keep
  3. 12
      dot_config/systemd/user/ssh-agent.service
  4. 1
      dot_pam_environment

0
dot_config/systemd/.keep

0
dot_config/systemd/user/.keep

12
dot_config/systemd/user/ssh-agent.service

@ -0,0 +1,12 @@
[Unit]
Description=SSH key agent
[Service]
Type=simple
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
# DISPLAY required for ssh-askpass to work
Environment=DISPLAY=:0
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
[Install]
WantedBy=default.target

1
dot_pam_environment

@ -0,0 +1 @@
SSH_AUTH_SOCK DEFAULT="${XDG_RUNTIME_DIR}/ssh-agent.socket"
Loading…
Cancel
Save