From 02252d492c5d2ab9ee263732f883a87c81cf2766 Mon Sep 17 00:00:00 2001 From: 12ww1160 <12ww1160@confdroid.com> Date: Mon, 13 Apr 2026 13:51:03 +0200 Subject: [PATCH] OP#575 fix ordering --- templates/sshd_custom_conf.erb | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/templates/sshd_custom_conf.erb b/templates/sshd_custom_conf.erb index 6531490..4735159 100644 --- a/templates/sshd_custom_conf.erb +++ b/templates/sshd_custom_conf.erb @@ -9,13 +9,6 @@ Port <%= @ssh_fw_port %> AddressFamily <%= @ssh_address_family %> ListenAddress <%= @ssh_listen_address %> -PubkeyAuthentication <%= @ssh_pubkey_auth %> -AuthorizedKeysFile <%= @ssh_auth_key_files %> - -AuthorizedPrincipalsFile <%= @ssh_authorized_principals_file %> -AuthorizedKeysCommand <%= @ssh_authorized_keys_command %> -AuthorizedKeysCommandUser <%= @ssh_authorized_keys_command_user %> - <% if @ssh_use_specific_hostkey -%> HostKey /etc/ssh/ssh_host_<%= @ssh_hostkey_type %>_key <% end -%> @@ -28,4 +21,11 @@ LogLevel <%= @ssh_log_level %> PermitRootLogin <%= @ssh_root_login %> StrictModes <%= @ssh_strict_modes %> MaxAuthTries <%= @ssh_max_auth_tries %> -MaxSessions <%= @ssh_max_sessions %> \ No newline at end of file +MaxSessions <%= @ssh_max_sessions %> + +PubkeyAuthentication <%= @ssh_pubkey_auth %> +AuthorizedKeysFile <%= @ssh_auth_key_files %> + +AuthorizedPrincipalsFile <%= @ssh_authorized_principals_file %> +AuthorizedKeysCommand <%= @ssh_authorized_keys_command %> +AuthorizedKeysCommandUser <%= @ssh_authorized_keys_command_user %> \ No newline at end of file