Skip to content

about /etc/pam.d/sshd and log to file #1

Description

@nexusguardusa

Hello
thanks help me.
i hope only right password stored in the specified file
if other people brute force my sshd,because log-credentials is right and wrong password all record /var/log/secure.so it's file very big,
just test in this /etc/pam.d/sshd,no record username and password. my file is:
/////////////////////

##%PAM-1.0
auth   required     pam_sepermit.so
auth  optional     log_credentials.so
auth   includepassword-auth
account    required     pam_nologin.so
account    includepassword-auth
password   includepassword-auth
##pam_selinux.so close should be the first session rule
session    required     pam_selinux.so close
session    required     pam_loginuid.so
##pam_selinux.so open should only be followed by sessions to be executed in the user context
session    required     pam_selinux.so open env_params
session    optional     pam_keyinit.so force revoke
session    includepassword-auth

/////////////////////
thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions