X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fssh%2Ftemplates%2Fsshd_config.erb;h=93b39c5f374f617bb8afd3bf1aff0a45c0eb0bc7;hb=a90fedb8cef5b26fdae6218bce5b599d39db8a0e;hp=51356af889ffb7a573ae8d940336a2883675b5d1;hpb=85f8fad7b15635d6b91431ada3d92b5433623619;p=mirror%2Fdsa-puppet.git diff --git a/modules/ssh/templates/sshd_config.erb b/modules/ssh/templates/sshd_config.erb index 51356af88..93b39c5f3 100644 --- a/modules/ssh/templates/sshd_config.erb +++ b/modules/ssh/templates/sshd_config.erb @@ -3,7 +3,7 @@ # What ports, IPs and protocols we listen for Port 22 -<%- extraports = case fqdn +<%= extraports = case fqdn when "ravel.debian.org" then "Port 443" when "agnesi.debian.org" then "Port 2260" end @@ -76,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