/etc/pam.d/sshd - CentOS Linux 6

This is the default example configuration of sshd provided by OpenSSH. This config file was generated by OpenSSH running on CentOS 6.

It is located under: /etc/pam.d/sshd

auth	   required	pam_sepermit.so
auth       include      password-auth
account    required     pam_nologin.so
account    include      password-auth
password   include      password-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    required     pam_namespace.so
session    optional     pam_keyinit.so force revoke
session    include      password-auth


Config Details

Operating system
CentOS Linux 6
14 lines
MD5 checksum


Download the raw file with wget or curl


wget -O sshd.example http://exampleconfig.com/static/raw/openssh/centos6/etc/pam.d/sshd


curl http://exampleconfig.com/static/raw/openssh/centos6/etc/pam.d/sshd > sshd.example