Skip to content
This repository has been archived by the owner on Dec 26, 2020. It is now read-only.

Issue #137: Fix sshd_config's "Match Group sftponly" #138

Merged
merged 1 commit into from
Oct 27, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions templates/opensshd.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -238,13 +238,13 @@ Subsystem sftp internal-sftp -l INFO -f LOCAL6

# These lines must appear at the *end* of sshd_config
Match Group sftponly
ForceCommand internal-sftp -l INFO -f LOCAL6
ChrootDirectory {{ sftp_chroot_dir }}
AllowTcpForwarding no
AllowAgentForwarding no
PasswordAuthentication no
PermitRootLogin no
X11Forwarding no
ForceCommand internal-sftp -l INFO -f LOCAL6
ChrootDirectory {{ sftp_chroot_dir }}
AllowTcpForwarding no
AllowAgentForwarding no
PasswordAuthentication no
PermitRootLogin no
X11Forwarding no
{% endif %}

{% if ssh_server_match_group %}
Expand Down