File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 71
71
default [ 'ssh' ] [ 'allow_groups' ] = [ ] # sshd
72
72
default [ 'ssh' ] [ 'print_motd' ] = false # sshd
73
73
default [ 'ssh' ] [ 'print_last_log' ] = false # sshd
74
+ default [ 'ssh' ] [ 'banner' ] = false # sshd
75
+ default [ 'ssh' ] [ 'os_banner' ] = false # sshd (Debian OS family)
76
+
74
77
# set this to nil to let us use the default OpenSSH in case it's not set by the user
75
78
default [ 'ssh' ] [ 'use_dns' ] = nil # sshd
76
79
# set this to nil to let us detect the attribute based on the node platform
Original file line number Diff line number Diff line change @@ -177,7 +177,12 @@ X11UseLocalhost yes
177
177
178
178
PrintMotd <%= ((@node['ssh']['print_motd']) ? 'yes' : 'no' ) %>
179
179
PrintLastLog <%= ((@node['ssh']['print_last_log']) ? 'yes' : 'no' ) %>
180
- #Banner /etc/ssh/banner.txt
180
+ Banner <%= @node['ssh']['banner'] ? '/etc/ssh/banner.txt' : 'none' %>
181
+
182
+ <% if @node['platform_family'] == 'debian' %>
183
+ DebianBanner <%= @node['ssh']['os_banner'] ? 'yes' : 'no' %>
184
+ <% end %>
185
+
181
186
<% if @node['ssh']['use_dns'].nil? %>
182
187
# Since OpenSSH 6.8, this value defaults to 'no'
183
188
#UseDNS no
You can’t perform that action at this time.
0 commit comments