X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fssh%2Ftemplates%2Fsshd_config.erb;h=93b39c5f374f617bb8afd3bf1aff0a45c0eb0bc7;hb=d32e0db21b3189bc85385eb4a7af1835bd3769a9;hp=0bc6efb7d6b5c0461a0b538cdd55cdc38ecbde97;hpb=47e85ae8925d80c78310477e3536cbff6401fd86;p=mirror%2Fdsa-puppet.git diff --git a/modules/ssh/templates/sshd_config.erb b/modules/ssh/templates/sshd_config.erb index 0bc6efb7d..93b39c5f3 100644 --- a/modules/ssh/templates/sshd_config.erb +++ b/modules/ssh/templates/sshd_config.erb @@ -76,10 +76,10 @@ AcceptEnv LANG LC_* Subsystem sftp /usr/lib/openssh/sftp-server UsePAM yes -<% if nodeinfo.has_key?('wheezy') and nodeinfo['wheezy'] %> -AuthorizedKeysFile /etc/ssh/userkeys/%u /var/lib/misc/userkeys/%u -<% else %> +<% if %w{lenny squeeze}.include?(lsbdistcodename) %> AuthorizedKeysFile /etc/ssh/userkeys/%u AuthorizedKeysFile2 /var/lib/misc/userkeys/%u +<% else %> +AuthorizedKeysFile /etc/ssh/userkeys/%u /var/lib/misc/userkeys/%u <% end %> PasswordAuthentication no