X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f93235356b0a6a47a562b6d5f21086c56addc570..41b4f8ccdff661e5463961da893ef91866e9f74c:/cookbooks/openssh/templates/default/sshd_config.conf.erb diff --git a/cookbooks/openssh/templates/default/sshd_config.conf.erb b/cookbooks/openssh/templates/default/sshd_config.conf.erb index 00a540a5e..99e427cc4 100644 --- a/cookbooks/openssh/templates/default/sshd_config.conf.erb +++ b/cookbooks/openssh/templates/default/sshd_config.conf.erb @@ -1,3 +1,9 @@ # DO NOT EDIT - This file is being maintained by Chef Port <%= node[:openssh][:port] %> + +<% if node[:openssh][:password_authentication] -%> +PasswordAuthentication yes +<% else -%> +PasswordAuthentication no +<% end -%>