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.each do |port| -%>
8 ListenAddress <%= port %>
10 # Use these options to restrict which interfaces/protocols sshd will bind to
13 HostKey /etc/ssh/ssh_host_rsa_key
14 <%- if has_variable?("has_etc_ssh_ssh_host_ed25519_key") && @has_etc_ssh_ssh_host_ed25519_key -%>
15 HostKey /etc/ssh/ssh_host_ed25519_key
17 <% if classes.include?("roles::ssh_upload") -%>
18 # On ssh upload hosts we have many clients doing ssh connections to us.
19 # sshd has - by default - a limit of 10 on the number of currently
20 # unauthenticated (or not yet authenticated) connections. Raise that limit.
21 MaxStartups 100:30:200
27 PermitRootLogin without-password
29 ChallengeResponseAuthentication no
37 Subsystem sftp /usr/lib/openssh/sftp-server
41 AuthorizedKeysFile /etc/ssh/userkeys/%u /var/lib/misc/userkeys/%u /etc/ssh/userkeys/%u.more /etc/ssh/puppetkeys/%u
43 PasswordAuthentication no
46 allnodeinfo = scope.lookupvar('deprecated::allnodeinfo')
48 settings = '# Banner "You are coming from a debian.org host."'
49 allnodeinfo.keys.sort.each do |node|
50 next unless allnodeinfo[node].has_key?('ipHostNumber')
51 out += "# Match Address "
52 out += allnodeinfo[node]['ipHostNumber'].collect do |ipnum|
68 AllowStreamLocalForwarding no
71 ForceCommand internal-sftp