dotfiles/systemd-user/.config/systemd/user/ssh-agent.service
rpriven 473e31cfb6 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>
2025-12-28 10:56:18 -07:00

12 lines
241 B
Desktop File

[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