From 8df50571485b330bfec7a0e6bd92ef767bf1e70b Mon Sep 17 00:00:00 2001 From: wanesty Date: Tue, 20 Jan 2026 20:13:05 +0100 Subject: [PATCH] =?UTF-8?q?Update=20Cookbook=20ssh=5Fagent,=20service=20na?= =?UTF-8?q?me=20and=20command=20idk=20how=20i=20forgor=20to=20write=20the?= =?UTF-8?q?=20name=20bro=20oml=20=F0=9F=A4=A6=E2=80=8D=E2=99=80sorry?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cookbook/ssh_agent.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/cookbook/ssh_agent.md b/cookbook/ssh_agent.md index 937fd3eb382..5217be22b1f 100644 --- a/cookbook/ssh_agent.md +++ b/cookbook/ssh_agent.md @@ -84,9 +84,21 @@ This a good option for you if you're using a Windows Manager or a Compositor sin ### As a service -Alternatively, you can enable it as an **user service**. OpenSSH typically includes a systemd service and the [ArchLinux wiki systemd/User](https://wiki.archlinux.org/title/Systemd/User) page covers how to enable services per user with systemd. +Alternatively, you can enable it as an **user service**. OpenSSH typically includes a systemd service named [`ssh-agent.service`](https://wiki.archlinux.org/title/SSH_keys#Start_ssh-agent_with_systemd_user). -However, if you're using a different service manager, please refer its own documentation to create a user service that utilizes the aforementioned command. +#### systemd OS + +The [ArchLinux wiki systemd/User](https://wiki.archlinux.org/title/Systemd/User) page covers how to enable services per user with systemd, but the command looks something like this: + +```sh +systemctl enable --now --user ssh-agent.service +``` + +#### Non-systemd OS + +However, if you're using a different service manager, please refer its own documentation as you might need to create a custom user service that utilizes the [standalone command from the previous section](#de-wm-config). + +#### Connect to it To enable Nushell to access this socket, you need to add its path as `$env.SSH_AUTH_SOCK` like so: