X-Git-Url: https://git.openstreetmap.org/chef.git/blobdiff_plain/9f6b6f0213bfc4f9700b51091a4774541c58048f..95e0606e9e28b0fecc515a6505d97d9e1618d781:/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 -%>