X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/ab47927c016597f8602b81dcdc168ad5c335389d..68e068818d559ef35bdf2a138a93596337828ef9:/cookbooks/openssh/templates/default/sshd_config.conf.erb?ds=inline 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 -%>