You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you would like your ssh agent to run when you are logged in, regardless of whether X is running, a handy ssh-agent.service is included in openssh since the version 9.4p1-3, which can be enabled as a user unit.
So maybe it is useful to add something like this in ssh role:
- name: Enable ssh-agent service
service:
name: ssh-agent.service
enabled: yes
state: started
scope: user
become: yes
become_user: "{{ user.name }}"
environment:
XDG_RUNTIME_DIR: "/run/user/{{ user.uid }}"
The text was updated successfully, but these errors were encountered:
I use GPG agent for my SSH, so I'm not interested in this. For people who do use SSH agent, I think launching it from one's shell config is still common. I'm not sure that there is an appeal to outsourcing that to systemd. But I'd accept a pull request for this as long as it depended on a variable that was disabled by default.
Arch wiki in section Start ssh-agent with systemd user proposes:
So maybe it is useful to add something like this in ssh role:
The text was updated successfully, but these errors were encountered: