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