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
69
69
# false to disable display of last login information
70
70
ssh_print_last_log : false # sshd
71
71
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
+
72
78
# true to enable sftp configuration
73
79
sftp_enabled : false
74
80
Original file line number Diff line number Diff line change 3
3
# This is the ssh client system-wide configuration file.
4
4
# See ssh_config(5) for more information on any settings used. Comments will be added only to clarify why a configuration was chosen.
5
5
#
6
- # Created for OpenSSH v5.9
7
-
8
6
# Basic configuration
9
7
# ===================
10
8
Original file line number Diff line number Diff line change 2
2
3
3
# This is the ssh client system-wide configuration file.
4
4
# 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
7
5
8
6
# Basic configuration
9
7
# ===================
@@ -200,10 +198,11 @@ PrintMotd {{ 'yes' if ssh_print_motd else 'no' }}
200
198
201
199
PrintLastLog {{ 'yes' if ssh_print_last_log else 'no' }}
202
200
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 %}
207
206
208
207
{% if sftp_enabled %}
209
208
# Configuration, in case SFTP is used
You can’t perform that action at this time.
0 commit comments