Browse Source

Add a ssh-agent systemd service

master
Jonathan Tremesaygues 4 months ago
parent
commit
e0ed9aa794
4 changed files with 13 additions and 0 deletions
  1. +0
    -0
      dot_config/systemd/.keep
  2. +0
    -0
      dot_config/systemd/user/.keep
  3. +12
    -0
      dot_config/systemd/user/ssh-agent.service
  4. +1
    -0
      dot_pam_environment

+ 0
- 0
dot_config/systemd/.keep View File


+ 0
- 0
dot_config/systemd/user/.keep View File


+ 12
- 0
dot_config/systemd/user/ssh-agent.service View File

@ -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
- 0
dot_pam_environment View File

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

Loading…
Cancel
Save