/etc/pam.d/sshd - Red Hat Enterprise Linux 8 (Ootpa)

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

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

    #%PAM-1.0
auth       substack     password-auth
auth       include      postlogin
account    required     pam_sepermit.so
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    optional     pam_motd.so
session    include      password-auth
session    include      postlogin

    
  

Config Details

Location
/etc/pam.d/sshd
Operating system
Red Hat Enterprise Linux 8 (Ootpa)
Length
17 lines
MD5 checksum
b3f59b8270fc2d992e97bbcce9415dce

Usage

Download the raw file with wget or curl

Wget

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

cURL

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