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 "
14 ListenAddress 0.0.0.0:22
16 ListenAddress 5.153.231.31:443
17 ListenAddress [2001:41c8:1000:21::21:31]:443
22 # Use these options to restrict which interfaces/protocols sshd will bind to
24 #ListenAddress 0.0.0.0
26 # HostKeys for protocol version 2
27 HostKey /etc/ssh/ssh_host_rsa_key
28 #Privilege Separation is turned on for security
29 UsePrivilegeSeparation yes
31 # Lifetime and size of ephemeral version 1 server key
32 KeyRegenerationInterval 3600
41 PermitRootLogin without-password
45 PubkeyAuthentication yes
47 # Don't read the user's ~/.rhosts and ~/.shosts files
49 # For this to work you will also need host keys in /etc/ssh_known_hosts
50 RhostsRSAAuthentication no
51 # similar for protocol version 2
52 HostbasedAuthentication no
53 # Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
54 #IgnoreUserKnownHosts yes
56 # To enable empty passwords, change to yes (NOT RECOMMENDED)
57 PermitEmptyPasswords no
59 # Change to yes to enable challenge-response passwords (beware issues with
60 # some PAM modules and threads)
61 ChallengeResponseAuthentication no
64 #KerberosAuthentication no
65 #KerberosGetAFSToken no
66 #KerberosOrLocalPasswd yes
67 #KerberosTicketCleanup yes
70 #GSSAPIAuthentication no
71 #GSSAPICleanupCredentials yes
81 #Banner /etc/issue.net
83 # Allow client to pass locale environment variables
86 Subsystem sftp /usr/lib/openssh/sftp-server
89 <% if %w{squeeze}.include?(scope.lookupvar('::lsbdistcodename')) %>
90 AuthorizedKeysFile /etc/ssh/userkeys/%u
91 AuthorizedKeysFile2 /var/lib/misc/userkeys/%u
93 AuthorizedKeysFile /etc/ssh/userkeys/%u /var/lib/misc/userkeys/%u /etc/ssh/userkeys/%u.more
95 PasswordAuthentication no