Skip to content

Commit

Permalink
Merge pull request #183 from bdwyertech/patch-1
Browse files Browse the repository at this point in the history
Fix Extra Configuration
  • Loading branch information
artem-sidorenko authored Nov 22, 2017
2 parents b47c92e + d280303 commit a6498da
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions templates/default/opensshd.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,13 @@ UseDNS <%= ((@node['ssh-hardening']['ssh']['server']['use_dns']) ? 'yes' : 'no'
AcceptEnv <%= @node['ssh-hardening']['ssh']['server']['accept_env'].join(' ') %>
<% end %>

<%- unless @node['ssh-hardening']['ssh']['server']['extras'].empty? %>
# Extra Configuration Options
<%- @node['ssh-hardening']['ssh']['server']['extras'].each do |key, value| %>
<%= key %> <%= value %>
<% end -%>
<% end -%>

<% if @node['ssh-hardening']['ssh']['server']['sftp']['enable'] %>
# Configuration, in case SFTP is used
## override default of no subsystems
Expand Down Expand Up @@ -234,10 +241,3 @@ X11Forwarding no
#PermitRootLogin no
#X11Forwarding no
<% end %>

<%- unless @node['ssh-hardening']['ssh']['server']['extras'].empty? %>
# Extra Configuration Options
<%- @node['ssh-hardening']['ssh']['server']['extras'].each do |key, value| %>
<%= key %> <%= value %>
<% end -%>
<% end -%>

0 comments on commit a6498da

Please sign in to comment.