X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;ds=sidebyside;f=modules%2Fssh%2Ftemplates%2Fsshd_config.erb;h=2d179de877109b8b9f2b510b827876bb418eb6fe;hb=fcbadcd7ee97cd5c9625a411bed276b0b5de069d;hp=0bc6efb7d6b5c0461a0b538cdd55cdc38ecbde97;hpb=3748ea9639537d06563ae9f7d57e187088a767e2;p=mirror%2Fdsa-puppet.git diff --git a/modules/ssh/templates/sshd_config.erb b/modules/ssh/templates/sshd_config.erb index 0bc6efb7d..2d179de87 100644 --- a/modules/ssh/templates/sshd_config.erb +++ b/modules/ssh/templates/sshd_config.erb @@ -5,7 +5,6 @@ Port 22 <%= extraports = case fqdn when "ravel.debian.org" then "Port 443" - when "agnesi.debian.org" then "Port 2260" end extraports %> @@ -76,10 +75,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{squeeze}.include?(scope.lookupvar('::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