sshd_config: Remove UsePrivilegeSeparation yes. on stretch the default is sandbox...
[mirror/dsa-puppet.git] / modules / ssh / templates / sshd_config.erb
1 ##
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
4 ##
5
6 Port 22
7 <%= extraports = case @fqdn
8                         when "paradis.debian.org" then "
9 ListenAddress 0.0.0.0:22
10 ListenAddress [::]:22
11 ListenAddress 5.153.231.31:443
12 ListenAddress [2001:41c8:1000:21::21:31]:443
13 "
14                  end
15 extraports
16 %>
17 # Use these options to restrict which interfaces/protocols sshd will bind to
18 Protocol 2
19
20 HostKey /etc/ssh/ssh_host_rsa_key
21 <%- if has_variable?("has_etc_ssh_ssh_host_ed25519_key") && @has_etc_ssh_ssh_host_ed25519_key -%>
22 HostKey /etc/ssh/ssh_host_ed25519_key
23 <% end %>
24
25 # Authentication:
26 PermitRootLogin without-password
27
28 ChallengeResponseAuthentication no
29
30 PrintMotd no
31
32 #MaxStartups 10:30:60
33
34 AcceptEnv LANG LC_*
35
36 Subsystem sftp /usr/lib/openssh/sftp-server
37
38 UsePAM yes
39
40 AuthorizedKeysFile /etc/ssh/userkeys/%u /var/lib/misc/userkeys/%u /etc/ssh/userkeys/%u.more
41
42 PasswordAuthentication no
43
44 Match Group sftponly
45   AllowStreamLocalForwarding no
46   AllowTCPForwarding no
47   X11Forwarding no
48   ForceCommand internal-sftp