User Tools

Site Tools


networking:ssh:multiple-systemd-ssh-agents

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
networking:ssh:multiple-systemd-ssh-agents [2022/05/07 01:58] – [Manage the ssh-agent service] chucknetworking:ssh:multiple-systemd-ssh-agents [2022/05/07 02:00] (current) – [Manage the ssh-agent service] chuck
Line 68: Line 68:
 systemctl --user stop ssh-agent@<name>.service systemctl --user stop ssh-agent@<name>.service
 </code> </code>
- 
----- 
  
 ===Naming the ssh-agent services=== ===Naming the ssh-agent services===
-  * What name to use for each service will also be the name of the socket.+  * Whatever name you use for each service will be included in the name of the agent'socket.
   * For example, if we named one ''%%foo%%'' and another ''%%bar%%'':<code bash>   * For example, if we named one ''%%foo%%'' and another ''%%bar%%'':<code bash>
 systemctl --user enable --now [email protected] systemctl --user enable --now [email protected]
Line 78: Line 76:
 </code> </code>
   * We would have two new socket files:<code bash>   * We would have two new socket files:<code bash>
-$XDG_RUNTIME_DIR/foo-service.socket +"$XDG_RUNTIME_DIR/foo-agent.socket" 
-$XDG_RUNTIME_DIR/bar-service.socket+"$XDG_RUNTIME_DIR/bar-agent.socket"
 </code> </code>
  
networking/ssh/multiple-systemd-ssh-agents.1651888698.txt.gz · Last modified: by chuck