On Tue, 03 Jun 2025 19:00:06 +0700 Frederic Muller wrote:

> Jun 3 18:54:09 host sudo[2371]: pam_ssh_agent_auth: Failed 
> Authentication: `user' as `user' using /etc/security/authorized_keys

> Any idea why this is happening? I check the authorized_keys and it's 
> there, and it's the same as the /home/user/.ssh/authorized_keys and the 
> key.pub for that user on my local machine.

Your ssh-agent is perhaps using different keys than the ones
present in /etc/security/authorized_keys.

Can you check that ?

With "ssh-add -L" for example on the target machine

~/.ssh/s1_sca is perhaps not encrypted and allowing thus to ssh
without using ssh-agent.

Also what is the type of the dedicated key ? 
This old pam_ssh_agent_auth may not know the new types as ed25519

A modern version of pam_ssh_agent_auth specify supporting explicitely
only some types. See: https://github.com/z4yx/pam_rssh

-- 
francis
-- 
_______________________________________________
users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://pagure.io/fedora-infrastructure/new_issue

Reply via email to