Make sure Match-configuration is at the bottom

This commit is contained in:
Peter Verraedt 2019-02-28 19:54:30 +01:00 committed by Garrett Honeycutt
parent 1f2410b07e
commit eb21a852f2
No known key found for this signature in database
GPG Key ID: 5F92FFE5632AC57B

View File

@ -264,15 +264,6 @@ AllowGroups <%= @sshd_config_allowgroups_real.join(' ') %>
<% if @sshd_config_key_revocation_list_real -%>
RevokedKeys <%= @sshd_config_key_revocation_list_real %>
<% end -%>
<% if @sshd_config_match -%>
<% @sshd_config_match.sort.each do |key, hash| -%>
Match <%= key %>
<% hash.sort.each do |values| -%>
<%= values %>
<% end -%>
<% end -%>
<% end -%>
<% if @sshd_config_hostcertificate_real.class == Array -%>
<% @sshd_config_hostcertificate_real.each do |cert| -%>
HostCertificate <%= cert %>
@ -286,3 +277,12 @@ TrustedUserCAKeys <%= @sshd_config_trustedusercakeys_real %>
<% if @sshd_config_authorized_principals_file_real -%>
AuthorizedPrincipalsFile <%= @sshd_config_authorized_principals_file_real %>
<% end -%>
<% if @sshd_config_match -%>
<% @sshd_config_match.sort.each do |key, hash| -%>
Match <%= key %>
<% hash.sort.each do |values| -%>
<%= values %>
<% end -%>
<% end -%>
<% end -%>