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