You are not logged in.
I'm following this guide: https://github.com/capocasa/systemd-user-pam-ssh
(If I did things correctly) My ssh-key should be automatically added to ssh-agent after logging in.
But ssh-add -l outputs:
The agent has no identities.
Journalctl reports:
Jan 15 12:33:37 ArchLinux login[431]: pam_exec(login:auth): /usr/lib/systemd/systemd-user-pam-ssh failed: exit code 126
Apparently exit code 126 means: command is found but is not executable (https://www.gnu.org/software/bash/manua … tatus.html)
This post: https://unix.stackexchange.com/question … om-crontab had me thinking it might be a permission issue.
But these are the permissions of systemd-user-pam-ssh:
-rwx--x--x 1 root root 1592 Jan 15 12:06 systemd-user-pam-ssh
So I don' think that's it.
Any advice appreciated.
Edit:
I fixed it by setting the read bit in the world triplet. The interpreter (BASH in this case) has to be able to read the script. See: https://www.reddit.com/r/linux4noobs/co … rmissions/
Last edited by greenleafvolatile (2022-01-21 14:18:29)
Offline