OpenSSH gsisshd configuration example for CentOS Linux 6

Get the default configuration file gsisshd for OpenSSH, optimized for CentOS Linux 6. This example configuration ensures optimal compatibility and performance for OpenSSH, making it easy to set up and adjust to meet your needs.

Find and download the configuration file here: /etc/pam.d/gsisshd.

For more configurations and setup guides, visit our related files section to further customize your system.

    #%PAM-1.0
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

Location
/etc/pam.d/gsisshd
Operating system
CentOS Linux 6
Length
14 lines
MD5 checksum
02ad57471c07185ac308cdfab3562359

Usage

Download the raw file with wget or curl

Wget

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

cURL

curl https://exampleconfig.com/static/raw/openssh/centos6/etc/pam.d/gsisshd > gsisshd.example