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 -%>
28 HostKey /etc/ssh/ssh_host_ed25519_key
30 #Privilege Separation is turned on for security
31 UsePrivilegeSeparation yes
39 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 HostbasedAuthentication no
48 # Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
49 #IgnoreUserKnownHosts yes
51 # To enable empty passwords, change to yes (NOT RECOMMENDED)
52 PermitEmptyPasswords no
54 # Change to yes to enable challenge-response passwords (beware issues with
55 # some PAM modules and threads)
56 ChallengeResponseAuthentication no
59 #KerberosAuthentication no
60 #KerberosGetAFSToken no
61 #KerberosOrLocalPasswd yes
62 #KerberosTicketCleanup yes
65 #GSSAPIAuthentication no
66 #GSSAPICleanupCredentials yes
76 #Banner /etc/issue.net
78 # Allow client to pass locale environment variables
81 Subsystem sftp /usr/lib/openssh/sftp-server
85 AuthorizedKeysFile /etc/ssh/userkeys/%u /var/lib/misc/userkeys/%u /etc/ssh/userkeys/%u.more
87 PasswordAuthentication no
90 AllowStreamLocalForwarding no
93 ForceCommand internal-sftp