File tree 1 file changed +7
-7
lines changed
1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,13 @@ UseDNS <%= ((@node['ssh-hardening']['ssh']['server']['use_dns']) ? 'yes' : 'no'
203
203
AcceptEnv <%= @node['ssh-hardening']['ssh']['server']['accept_env'].join(' ') %>
204
204
<% end %>
205
205
206
+ <%- unless @node['ssh-hardening']['ssh']['server']['extras'].empty? %>
207
+ # Extra Configuration Options
208
+ <%- @node['ssh-hardening']['ssh']['server']['extras'].each do |key, value| %>
209
+ <%= key %> <%= value %>
210
+ <% end -%>
211
+ <% end -%>
212
+
206
213
<% if @node['ssh-hardening']['ssh']['server']['sftp']['enable'] %>
207
214
# Configuration, in case SFTP is used
208
215
## override default of no subsystems
@@ -234,10 +241,3 @@ X11Forwarding no
234
241
#PermitRootLogin no
235
242
#X11Forwarding no
236
243
<% end %>
237
-
238
- <%- unless @node['ssh-hardening']['ssh']['server']['extras'].empty? %>
239
- # Extra Configuration Options
240
- <%- @node['ssh-hardening']['ssh']['server']['extras'].each do |key, value| %>
241
- <%= key %> <%= value %>
242
- <% end -%>
243
- <% end -%>
You can’t perform that action at this time.
0 commit comments