Add ssh-agent.service for systemd user session

Fixes SSH agent socket path mismatch issue where system socket
unit sets SSH_AUTH_SOCK to wrong path. This service runs standalone
without socket activation to avoid conflicts.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
rpriven 2025-12-28 10:56:18 -07:00
parent 5b6af65def
commit 473e31cfb6

View file

@ -0,0 +1,12 @@
[Unit]
Description=SSH Agent
Documentation=man:ssh-agent(1)
[Service]
Type=simple
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
ExecStart=/usr/bin/ssh-agent -D -a $SSH_AUTH_SOCK
ExecStartPost=/bin/sleep 1
[Install]
WantedBy=default.target