# --- # @author jianqun.me # @updated 2025-07-24 # --- [Unit] Description=OpenSSH Agent Documentation=man:ssh-agent(1) [Service] Type=simple ExecStart=/usr/bin/ssh-agent -D -a "%t/ssh-agent.sock" [Install] WantedBy=default.target # --- # curl -L https://dl.jianqun.me/dotfiles/ssh/ssh-agent.service \ # -o ~/.config/systemd/user/ssh-agent.service --create-dirs && \ # systemctl --user enable ssh-agent.service --now # cat >> ~/.profile << 'EOF' && source ~/.profile # if [ -z "$SSH_AUTH_SOCK" ] && [ -S "${XDG_RUNTIME_DIR}/ssh-agent.sock" ]; then # export SSH_AUTH_SOCK="${XDG_RUNTIME_DIR}/ssh-agent.sock" # fi # EOF # ---