sshd_config: remove commented out options and options where we just use the default...
[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 UsePrivilegeSeparation yes
25
26 # Authentication:
27 PermitRootLogin without-password
28
29 ChallengeResponseAuthentication no
30
31 PrintMotd no
32
33 #MaxStartups 10:30:60
34
35 AcceptEnv LANG LC_*
36
37 Subsystem sftp /usr/lib/openssh/sftp-server
38
39 UsePAM yes
40
41 AuthorizedKeysFile /etc/ssh/userkeys/%u /var/lib/misc/userkeys/%u /etc/ssh/userkeys/%u.more
42
43 PasswordAuthentication no
44
45 Match Group sftponly
46   AllowStreamLocalForwarding no
47   AllowTCPForwarding no
48   X11Forwarding no
49   ForceCommand internal-sftp