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
7 <%= extraports = case @fqdn
8 when "paradis.debian.org" then "
9 ListenAddress 0.0.0.0:22
11 ListenAddress 5.153.231.31:443
12 ListenAddress [2001:41c8:1000:21::21:31]:443
17 # Use these options to restrict which interfaces/protocols sshd will bind to
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
24 <% if scope.function_has_role(['ssh.upload.d.o']) -%>
25 # On ssh upload hosts we have many clients doing ssh connections to us.
26 # sshd has - by default - a limit of 10 on the number of currently
27 # unauthenticated (or not yet authenticated) connections. Raise that limit.
28 MaxStartups 100:30:200
34 PermitRootLogin without-password
36 ChallengeResponseAuthentication no
44 Subsystem sftp /usr/lib/openssh/sftp-server
48 AuthorizedKeysFile /etc/ssh/userkeys/%u /var/lib/misc/userkeys/%u /etc/ssh/userkeys/%u.more /etc/ssh/puppetkeys/%u
50 PasswordAuthentication no
53 allnodeinfo = scope.lookupvar('deprecated::allnodeinfo')
55 settings = '# Banner "You are coming from a debian.org host."'
56 allnodeinfo.keys.sort.each do |node|
57 next unless allnodeinfo[node].has_key?('ipHostNumber')
58 out += "# Match Address "
59 out += allnodeinfo[node]['ipHostNumber'].collect do |ipnum|
75 AllowStreamLocalForwarding no
78 ForceCommand internal-sftp