2 ## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
3 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
6 # Package generated configuration file
7 # See the sshd(8) manpage for details
9 # What ports, IPs and protocols we listen for
11 <%= extraports = case fqdn
12 when "ravel.debian.org" then "Port 443"
13 when "paradis.debian.org" then "
15 Port 2001:41c8:1000:21::21:31:443"
19 # Use these options to restrict which interfaces/protocols sshd will bind to
21 #ListenAddress 0.0.0.0
23 # HostKeys for protocol version 2
24 HostKey /etc/ssh/ssh_host_rsa_key
25 #Privilege Separation is turned on for security
26 UsePrivilegeSeparation yes
28 # Lifetime and size of ephemeral version 1 server key
29 KeyRegenerationInterval 3600
38 PermitRootLogin without-password
42 PubkeyAuthentication yes
44 # Don't read the user's ~/.rhosts and ~/.shosts files
46 # For this to work you will also need host keys in /etc/ssh_known_hosts
47 RhostsRSAAuthentication no
48 # similar for protocol version 2
49 HostbasedAuthentication no
50 # Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
51 #IgnoreUserKnownHosts yes
53 # To enable empty passwords, change to yes (NOT RECOMMENDED)
54 PermitEmptyPasswords no
56 # Change to yes to enable challenge-response passwords (beware issues with
57 # some PAM modules and threads)
58 ChallengeResponseAuthentication no
61 #KerberosAuthentication no
62 #KerberosGetAFSToken no
63 #KerberosOrLocalPasswd yes
64 #KerberosTicketCleanup yes
67 #GSSAPIAuthentication no
68 #GSSAPICleanupCredentials yes
78 #Banner /etc/issue.net
80 # Allow client to pass locale environment variables
83 Subsystem sftp /usr/lib/openssh/sftp-server
86 <% if %w{squeeze}.include?(scope.lookupvar('::lsbdistcodename')) %>
87 AuthorizedKeysFile /etc/ssh/userkeys/%u
88 AuthorizedKeysFile2 /var/lib/misc/userkeys/%u
90 AuthorizedKeysFile /etc/ssh/userkeys/%u /var/lib/misc/userkeys/%u /etc/ssh/userkeys/%u.more
92 PasswordAuthentication no