Quantcast
Channel: sudo without password when logged in with SSH private keys - Super User
Viewing all articles
Browse latest Browse all 4

Answer by Liam Dawson for sudo without password when logged in with SSH private keys

$
0
0

The option to do so has existed since (at least) April 2014.

You will need to install a package called pam_ssh_agent_auth (available for Centos 7 out of the box, YMMV), then configure /etc/pam.d/sudo to accept it as an authorization method. Finally, you may need to add SSH_AUTH_SOCK to the list of environment variables that persist during sudo.

The Gentoo wiki has details for these steps.


Viewing all articles
Browse latest Browse all 4

Trending Articles