]> git.donarmstrong.com Git - dsa-puppet.git/blobdiff - modules/ssh/templates/sshd_config.erb
probably break a couple of release dependent templates
[dsa-puppet.git] / modules / ssh / templates / sshd_config.erb
index 840a7f87cd99de05ec02949fdb77d87873bb0d40..93b39c5f374f617bb8afd3bf1aff0a45c0eb0bc7 100644 (file)
@@ -3,9 +3,8 @@
 
 # What ports, IPs and protocols we listen for
 Port 22
-<%- extraports = case fqdn
+<%= extraports = case fqdn
                         when "ravel.debian.org" then "Port 443"
-                        when "gluck.debian.org" then "Port 443"
                         when "agnesi.debian.org" then "Port 2260"
                  end
 extraports
@@ -77,6 +76,10 @@ AcceptEnv LANG LC_*
 Subsystem sftp /usr/lib/openssh/sftp-server
 
 UsePAM yes
+<% 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