From ba8d788f89e2e8676985b40553a9f6794a322217 Mon Sep 17 00:00:00 2001 From: Micah Anderson Date: Fri, 26 Sep 2008 17:28:05 -0400 Subject: add the sshd_strict_modes variable, with the default set to yes --- templates/sshd_config/CentOS_normal.erb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'templates/sshd_config/CentOS_normal.erb') diff --git a/templates/sshd_config/CentOS_normal.erb b/templates/sshd_config/CentOS_normal.erb index dc57680..849d9fb 100644 --- a/templates/sshd_config/CentOS_normal.erb +++ b/templates/sshd_config/CentOS_normal.erb @@ -41,7 +41,13 @@ PermitRootLogin <%= real_sshd_permit_root_login %> <%- else %> PermitRootLogin without-password <%- end %> -#StrictModes yes + +<%- if real_sshd_strict_modes.to_s == 'yes' then %> +StrictModes yes +<%- else %> +StrictModes no +<%- end %> + #MaxAuthTries 6 <%- if real_sshd_rsa_authentication.to_s == 'yes' then %> -- cgit v1.2.3