This unanswered question is similar to mine except my situation is simpler. After successfully logging in as user
sudo command prompts for the user's password with:
[sudo] password for ubuntu:
After authenticating with keys, I would like to not have to provide the password for this user. Is this possible? All the shells are bash. Thanks.
/etc/sudoers sudoers file on the remote machine:
# User privilege specification root ALL=(ALL:ALL) ALL # Members of the admin group may gain root privileges %admin ALL=(ALL) ALL # Allow members of group sudo to execute any command %sudo ALL=(ALL:ALL) ALL