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
This commit is contained in:
parent
98ddbe8ef5
commit
1f25b213e1
2 changed files with 2 additions and 1 deletions
|
@ -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 %>
|
||||
|
||||
|
||||
|
|
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue