diff --git a/templates/sshd_config.erb b/templates/sshd_config.erb index cf55d5f..4e1bd70 100644 --- a/templates/sshd_config.erb +++ b/templates/sshd_config.erb @@ -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 -%>