sshd is not the same as ssh-agent
https://wiki.archlinux.org/title/SSH_keys
You need to start the ssh-agent together with your gui, so it is persistent between terminal sessions.
This depends on the DE you use.
- Please read the information behind this link. It will help you to post necessary information.
- Please press the three dots … below your post and then press the

- If you give us information about your system, we can see what we’re talking about and make better suggestions.
- You can do this by using
inxiin a terminal or in console.
sudo inxi --admin --verbosity=7 --filter --no-host --width
- Personally identifiable information such as serial numbers and MAC addresses are filtered out by this command
- Presenting the information in this way allows everyone to be familiar with the format and quickly find the items they need without missing anything.
- Copy the output from inxi (including the command) and paste it into your post.
- To make it more readable, add 3 backticks ``` on an extra line before and after the pasted text.
Have you already
for your problem in the forum ? (Wisdom lies in asking → listening → reading
)
What does printenv tell ?
printenv|grep ssh
SSH_AUTH_SOCK=/tmp/ssh-XXXXXXxQxL95/agent.1918537
SSH_KEY_PATH=~/.ssh/rsa_id