networking:ssh:multiple-systemd-ssh-agents
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
networking:ssh:multiple-systemd-ssh-agents [2022/05/06 21:57] – [Naming the ssh-agent-services] chuck | networking:ssh:multiple-systemd-ssh-agents [2022/05/06 22:00] (current) – [Manage the ssh-agent service] chuck | ||
---|---|---|---|
Line 57: | Line 57: | ||
=====Administration===== | =====Administration===== | ||
- | ====Naming the ssh-agent services==== | ||
- | * What name to use for each service will also be the name of the socket. | ||
- | * For example, if we named one '' | ||
- | systemctl --user enable --now [email protected] | ||
- | systemctl --user enable --now [email protected] | ||
- | </ | ||
- | * We would have two new socket files:< | ||
- | $XDG_RUNTIME_DIR/ | ||
- | $XDG_RUNTIME_DIR/ | ||
- | </ | ||
- | ---- | ||
====Manage the ssh-agent service==== | ====Manage the ssh-agent service==== | ||
* Start and enable the agent as your regular user (and similar for the other agent(s)):< | * Start and enable the agent as your regular user (and similar for the other agent(s)):< | ||
Line 80: | Line 69: | ||
</ | </ | ||
- | ---- | + | ===Naming the ssh-agent services=== |
+ | * Whatever name you use for each service will be included in the name of the agent' | ||
+ | * For example, if we named one '' | ||
+ | systemctl | ||
+ | systemctl --user enable --now [email protected] | ||
+ | </ | ||
+ | * We would have two new socket files:< | ||
+ | " | ||
+ | " | ||
+ | </ | ||
+ | ---- | ||
=====Set a default ssh-agent===== | =====Set a default ssh-agent===== | ||
* Create an environment variable in your preferred startup file (eg '' | * Create an environment variable in your preferred startup file (eg '' |
networking/ssh/multiple-systemd-ssh-agents.1651888667.txt.gz · Last modified: 2022/05/06 21:57 by chuck