X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/f93235356b0a6a47a562b6d5f21086c56addc570..68e068818d559ef35bdf2a138a93596337828ef9:/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 -%>