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/07 01:51] – [Gotchas] chuck | networking:ssh:multiple-systemd-ssh-agents [2022/05/07 02:00] (current) – [Manage the ssh-agent service] chuck | ||
|---|---|---|---|
| Line 56: | Line 56: | ||
| ---- | ---- | ||
| + | =====Administration===== | ||
| + | |||
| + | ====Manage the ssh-agent service==== | ||
| + | * Start and enable the agent as your regular user (and similar for the other agent(s)):< | ||
| + | systemctl --user enable --now ssh-agent@< | ||
| + | </ | ||
| + | * Check status of the ssh-agent service:< | ||
| + | systemctl --user status ssh-agent@< | ||
| + | </ | ||
| + | * Stop the ssh-agent service:< | ||
| + | systemctl --user stop ssh-agent@< | ||
| + | </ | ||
| + | |||
| + | ===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 --user enable --now [email protected] | ||
| + | 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 '' | ||
| Line 86: | Line 111: | ||
| ---- | ---- | ||
| - | =====Administration===== | ||
| - | ====Manage the ssh-agent service==== | ||
| - | * Start and enable the agent as your regular user (and similar for the other agent(s)):< | ||
| - | systemctl --user enable --now ssh-agent@< | ||
| - | </ | ||
| - | * Check status of the ssh-agent service:< | ||
| - | systemctl --user status ssh-agent@< | ||
| - | </ | ||
| - | * Stop the ssh-agent service:< | ||
| - | systemctl --user stop ssh-agent@< | ||
| - | </ | ||
| - | ---- | ||
| ====Manage the keys in the ssh-agent==== | ====Manage the keys in the ssh-agent==== | ||
networking/ssh/multiple-systemd-ssh-agents.1651888290.txt.gz · Last modified: by chuck
