summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMicah Anderson <micah@riseup.net>2008-10-27 15:45:11 -0400
committerMicah Anderson <micah@riseup.net>2008-10-27 15:45:11 -0400
commit1f25b213e1ff1c953dac53f02d862612a5e09c0f (patch)
tree7ffeb68ee727e8dfb776dc1c66b6f694e1d32321 /templates
parent98ddbe8ef56d5a3552e4dd812d1a01cbae211eaf (diff)
Debian's sshd config typically has PrintMotd no set because its already printed via PAM.
Without it set, it is defaulted to 'yes', which results in the MOTD being printed twice, so we return the Debian default configuration in this commit
Diffstat (limited to 'templates')
-rw-r--r--templates/sshd_config/Debian_etch.erb2
-rw-r--r--templates/sshd_config/Debian_lenny.erb1
2 files changed, 2 insertions, 1 deletions
diff --git a/templates/sshd_config/Debian_etch.erb b/templates/sshd_config/Debian_etch.erb
index 28aa52c..f30242d 100644
--- a/templates/sshd_config/Debian_etch.erb
+++ b/templates/sshd_config/Debian_etch.erb
@@ -168,9 +168,9 @@ AllowUsers <%= sshd_allowed_users -%>
AllowGroups <%= sshd_allowed_groups %>
<%- end %>
+PrintMotd no
<%- unless sshd_additional_options.to_s.empty? then %>
<%= sshd_additional_options %>
<%- end %>
-
diff --git a/templates/sshd_config/Debian_lenny.erb b/templates/sshd_config/Debian_lenny.erb
index 8d68808..146e664 100644
--- a/templates/sshd_config/Debian_lenny.erb
+++ b/templates/sshd_config/Debian_lenny.erb
@@ -174,6 +174,7 @@ AllowUsers <%= sshd_allowed_users -%>
AllowGroups <%= sshd_allowed_groups %>
<%- end %>
+PrintMotd no
<%- unless sshd_additional_options.to_s.empty? then %>
<%= sshd_additional_options %>