Install libpam-ssh-agent-auth by entering the following commands in the terminal:
sudo apt update sudo apt install libpam-ssh-agent-auth
PAM Authentication via forwarded ssh-agent
pam_ssh_agent_auth is a PAM module which permits PAM authentication via your keyring in a forwarded ssh-agent. . This module can be used to provide authentication for anything run locally that supports PAM. It was written specifically with the intention of permitting authentication for sudo without password entry, and also has been proven useful for use with su as an alternative to wheel.