This repository was archived by the owner on Dec 26, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Expand file tree Collapse file tree 3 files changed +11
-8
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,12 @@ ssh_print_motd: false # sshd
6969# false to disable display of last login information
7070ssh_print_last_log : false # sshd
7171
72+ # false to disable serving /etc/ssh/banner.txt before authentication is allowed
73+ ssh_banner : false # sshd
74+
75+ # false to disable distribution version leakage during initial protocol handshake
76+ ssh_print_debian_banner : false # sshd (Debian OS family only)
77+
7278# true to enable sftp configuration
7379sftp_enabled : false
7480
Original file line number Diff line number Diff line change 33# This is the ssh client system-wide configuration file.
44# See ssh_config(5) for more information on any settings used. Comments will be added only to clarify why a configuration was chosen.
55#
6- # Created for OpenSSH v5.9
7-
86# Basic configuration
97# ===================
108
Original file line number Diff line number Diff line change 22
33# This is the ssh client system-wide configuration file.
44# See sshd_config(5) for more information on any settings used. Comments will be added only to clarify why a configuration was chosen.
5- #
6- # Created for OpenSSH v5.9
75
86# Basic configuration
97# ===================
@@ -200,10 +198,11 @@ PrintMotd {{ 'yes' if ssh_print_motd else 'no' }}
200198
201199PrintLastLog {{ 'yes' if ssh_print_last_log else 'no' }}
202200
203- #Banner /etc/ssh/banner.txt
204- #UseDNS yes
205- #PidFile /var/run/sshd.pid
206- #MaxStartups 10
201+ Banner {{ '/etc/ssh/banner.txt' if ssh_banner else 'none' }}
202+
203+ {% if ansible_os_family == 'Debian' %}
204+ DebianBanner {{ 'yes' if ssh_print_debian_banner else 'no' }}
205+ {% endif %}
207206
208207{% if sftp_enabled %}
209208# Configuration, in case SFTP is used
You can’t perform that action at this time.
0 commit comments