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 <%- if has_variable?("has_etc_ssh_ssh_host_ed25519_key") && has_etc_ssh_ssh_host_ed25519_key == "true" -%>
29 HostKey /etc/ssh/ssh_host_ed25519_key
31 #Privilege Separation is turned on for security
32 UsePrivilegeSeparation yes
34 # Lifetime and size of ephemeral version 1 server key
35 KeyRegenerationInterval 3600
44 PermitRootLogin without-password
48 PubkeyAuthentication yes
50 # Don't read the user's ~/.rhosts and ~/.shosts files
52 # For this to work you will also need host keys in /etc/ssh_known_hosts
53 RhostsRSAAuthentication no
54 # similar for protocol version 2
55 HostbasedAuthentication no
56 # Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
57 #IgnoreUserKnownHosts yes
59 # To enable empty passwords, change to yes (NOT RECOMMENDED)
60 PermitEmptyPasswords no
62 # Change to yes to enable challenge-response passwords (beware issues with
63 # some PAM modules and threads)
64 ChallengeResponseAuthentication no
67 #KerberosAuthentication no
68 #KerberosGetAFSToken no
69 #KerberosOrLocalPasswd yes
70 #KerberosTicketCleanup yes
73 #GSSAPIAuthentication no
74 #GSSAPICleanupCredentials yes
84 #Banner /etc/issue.net
86 # Allow client to pass locale environment variables
89 Subsystem sftp /usr/lib/openssh/sftp-server
92 <% if %w{squeeze}.include?(scope.lookupvar('::lsbdistcodename')) %>
93 AuthorizedKeysFile /etc/ssh/userkeys/%u
94 AuthorizedKeysFile2 /var/lib/misc/userkeys/%u
96 AuthorizedKeysFile /etc/ssh/userkeys/%u /var/lib/misc/userkeys/%u /etc/ssh/userkeys/%u.more
98 PasswordAuthentication no