Files
configpolicy/roles
Dustin C. Hatch 091d9e1f78 r/sudo: Optionally enable pam_ssh_agent_auth
The [pam_ssh_agent_auth][0] PAM module authenticates users using keys in
their SSH agent.  Using SSH agent forwarding, it can even authenticate
users with keys on a remote system.  By adding it to the PAM stack for
`sudo`, we can configure the latter to authenticate users without
requiring a password.  For servers especially, this is significantly
more secure than configuring `sudo` not to require a password, while
still being almost as convenient.

For this to work, users need to enable SSH agent forwarding on their
clients, and their public keys have to be listed in the
`/etc/security/sudo.authorized_keys` file.  Additionally, although the
documentation suggests otherwise, the `SSH_AUTH_SOCK` environment
variable has to be added to the `env_keep` list in *sudoers(5)*.

[0]: https://github.com/jbeverly/pam_ssh_agent_auth
2024-01-28 12:16:35 -06:00
..
2018-08-08 21:38:56 -05:00
2020-03-09 20:29:52 -05:00
2018-07-23 17:35:10 -05:00
2023-11-13 17:45:21 -06:00
2018-04-08 10:11:43 -05:00
2024-01-22 09:03:15 -06:00
2023-10-24 17:27:21 -05:00
2022-08-15 17:12:35 -05:00
2023-10-28 16:07:39 -05:00
2018-06-06 21:44:28 -05:00
2022-08-15 17:06:20 -05:00
2024-01-21 16:12:29 -06:00