summaryrefslogtreecommitdiff
path: root/debian/openssh-server.postinst
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2010-01-04 11:22:38 +0000
committerColin Watson <cjwatson@debian.org>2010-01-04 11:22:38 +0000
commit0239e785e4985848ccbcf2ac770c75bd68d6ddd1 (patch)
treef943a2eebfcedd122795cc23a34bc0475ad99040 /debian/openssh-server.postinst
parent45ca6df65830930b85c9c9e039c969bfe6c64da1 (diff)
Refer to sshd_config(5) rather than sshd(8) in postinst-written
/etc/ssh/sshd_config, and add UsePAM commentary from upstream-shipped configuration file (closes: #415008, although unfortunately this will only be conveniently visible on new installations).
Diffstat (limited to 'debian/openssh-server.postinst')
-rw-r--r--debian/openssh-server.postinst11
1 files changed, 10 insertions, 1 deletions
diff --git a/debian/openssh-server.postinst b/debian/openssh-server.postinst
index 9dfc68a5a..557bf2b23 100644
--- a/debian/openssh-server.postinst
+++ b/debian/openssh-server.postinst
@@ -294,7 +294,7 @@ create_sshdconfig() {
294 294
295 cat <<EOF > /etc/ssh/sshd_config 295 cat <<EOF > /etc/ssh/sshd_config
296# Package generated configuration file 296# Package generated configuration file
297# See the sshd(8) manpage for details 297# See the sshd_config(5) manpage for details
298 298
299# What ports, IPs and protocols we listen for 299# What ports, IPs and protocols we listen for
300Port 22 300Port 22
@@ -369,6 +369,15 @@ AcceptEnv LANG LC_*
369 369
370Subsystem sftp /usr/lib/openssh/sftp-server 370Subsystem sftp /usr/lib/openssh/sftp-server
371 371
372# Set this to 'yes' to enable PAM authentication, account processing,
373# and session processing. If this is enabled, PAM authentication will
374# be allowed through the ChallengeResponseAuthentication and
375# PasswordAuthentication. Depending on your PAM configuration,
376# PAM authentication via ChallengeResponseAuthentication may bypass
377# the setting of "PermitRootLogin without-password".
378# If you just want the PAM account and session checks to run without
379# PAM authentication, then enable this but set PasswordAuthentication
380# and ChallengeResponseAuthentication to 'no'.
372UsePAM yes 381UsePAM yes
373EOF 382EOF
374} 383}