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 "paradis.debian.org" then "
13 ListenAddress 0.0.0.0:22
15 ListenAddress 5.153.231.31:443
16 ListenAddress [2001:41c8:1000:21::21:31]:443
21 # Use these options to restrict which interfaces/protocols sshd will bind to
23 #ListenAddress 0.0.0.0
25 # HostKeys for protocol version 2
26 HostKey /etc/ssh/ssh_host_rsa_key
27 <%- if has_variable?("has_etc_ssh_ssh_host_ed25519_key") && has_etc_ssh_ssh_host_ed25519_key == "true" -%>
28 HostKey /etc/ssh/ssh_host_ed25519_key
30 #Privilege Separation is turned on for security
31 UsePrivilegeSeparation yes
33 # Lifetime and size of ephemeral version 1 server key
34 KeyRegenerationInterval 3600
43 PermitRootLogin without-password
47 PubkeyAuthentication yes
49 # Don't read the user's ~/.rhosts and ~/.shosts files
51 # For this to work you will also need host keys in /etc/ssh_known_hosts
52 RhostsRSAAuthentication no
53 # similar for protocol version 2
54 HostbasedAuthentication no
55 # Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
56 #IgnoreUserKnownHosts yes
58 # To enable empty passwords, change to yes (NOT RECOMMENDED)
59 PermitEmptyPasswords no
61 # Change to yes to enable challenge-response passwords (beware issues with
62 # some PAM modules and threads)
63 ChallengeResponseAuthentication no
66 #KerberosAuthentication no
67 #KerberosGetAFSToken no
68 #KerberosOrLocalPasswd yes
69 #KerberosTicketCleanup yes
72 #GSSAPIAuthentication no
73 #GSSAPICleanupCredentials yes
83 #Banner /etc/issue.net
85 # Allow client to pass locale environment variables
88 Subsystem sftp /usr/lib/openssh/sftp-server
92 AuthorizedKeysFile /etc/ssh/userkeys/%u /var/lib/misc/userkeys/%u /etc/ssh/userkeys/%u.more
94 PasswordAuthentication no