Advertisement
c0psrul3

PAM ssh_agent sudo auth

Nov 27th, 2015
349
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. pam_ssh_agent_auth
  2.  
  3. in sudoers:
  4. Defaults env_keep += "SSH_CLIENT SSH_CONNECTION SSH_TTY SSH_AUTH_SOCK", timestamp_timeout=0
  5.  
  6. pam configuration:
  7. /etc/pam.d/sudo
  8.  
  9. pam rules:
  10. auth, account, session, password
  11.  
  12.  
  13. auth required pam_unix.so no_warn try_first_pass nullok
  14.  
  15. auth sufficient pam_ssh_agent_auth.so file=~/.ssh/authorized_keys
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement