diff --git a/templates/sshd_config.j2 b/templates/sshd_config.j2 index 6378111b8b860b150cf10b0db42ac6262c1ec713..b848db19ded7388bd55b3362bbd661ff5b3327a9 100644 --- a/templates/sshd_config.j2 +++ b/templates/sshd_config.j2 @@ -21,6 +21,7 @@ X11Forwarding no {% if inventory_hostname in groups.backup_server %} AllowUsers {{ host_user }}{% if host_user2 is defined %} {{ host_user2 }}{% endif %} {{ (groups.all | difference(groups.backup_server)) | map('extract', hostvars, ['backup_sftp_user']) | sort | join(" ") }} AllowGroups {{ host_user }} sftpgroup +MaxStartups {{ (groups.all | difference(groups.backup_server)) | length + 2}} Match Group sftpgroup ChrootDirectory /backup/sftp ForceCommand internal-sftp