Sudo authentication fails with error "No ssh-agent could be contacted" when using a remote smartcard
Issue
- Unable to use CAC login for sudo access on RHEL 8 machines
- Error message: 'No ssh-agent could be contacted'
- Authentication requesting a password for user when attempting to sudo
Environment
- Red Hat Enterprise Linux 8.10
- FIPS enabled
- ssh-agent
- Certificates loaded in ssh-add on the local machine
- '$SSH_AUTH_SOCK' available on the machine
- Certificates visible with 'ssh-add -l' once connected to the machine
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.