/etc/pam.d/sshd - Ubuntu 12.04 LTS (Precise Pangolin)

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

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

    # PAM configuration for the Secure Shell service

# Standard Un*x authentication.
@include common-auth

# Disallow non-root logins when /etc/nologin exists.
account    required     pam_nologin.so

# Uncomment and edit /etc/security/access.conf if you need to set complex
# access limits that are hard to express in sshd_config.
# account  required     pam_access.so

# Standard Un*x authorization.
@include common-account

# Standard Un*x session setup and teardown.
@include common-session

# Print the message of the day upon successful login.
session    optional     pam_motd.so # [1]

# Print the status of the user's mailbox upon successful login.
session    optional     pam_mail.so standard noenv # [1]

# Set up user limits from /etc/security/limits.conf.
session    required     pam_limits.so

# Set up SELinux capabilities (need modified pam)
# session  required     pam_selinux.so multiple

# Read environment variables from /etc/environment and
# /etc/security/pam_env.conf.
session    required     pam_env.so # [1]
# In Debian 4.0 (etch), locale-related environment variables were moved to
# /etc/default/locale, so read that as well.
session    required     pam_env.so user_readenv=1 envfile=/etc/default/locale

# Standard Un*x password updating.
@include common-password

    
  

Config Details

Location
/etc/pam.d/sshd
Operating system
Ubuntu 12.04 LTS (Precise Pangolin)
Length
39 lines
MD5 checksum
7d1f5d0deb6bcbfe8076640cc573b09c

Usage

Download the raw file with wget or curl

Wget

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

cURL

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