Sudo authentication fails with error "No ssh-agent could be contacted" when using a remote smartcard

Solution In Progress - Updated -

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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content