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

Commit 0c8fd63

Browse files
authored
Merge pull request #138 from kekumu/patch-1
Issue #137: Indent sshd_config's "Match Group sftponly"
2 parents f9b0c2e + 1f1ff2b commit 0c8fd63

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

templates/opensshd.conf.j2

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -238,13 +238,13 @@ Subsystem sftp internal-sftp -l INFO -f LOCAL6
238238

239239
# These lines must appear at the *end* of sshd_config
240240
Match Group sftponly
241-
ForceCommand internal-sftp -l INFO -f LOCAL6
242-
ChrootDirectory {{ sftp_chroot_dir }}
243-
AllowTcpForwarding no
244-
AllowAgentForwarding no
245-
PasswordAuthentication no
246-
PermitRootLogin no
247-
X11Forwarding no
241+
ForceCommand internal-sftp -l INFO -f LOCAL6
242+
ChrootDirectory {{ sftp_chroot_dir }}
243+
AllowTcpForwarding no
244+
AllowAgentForwarding no
245+
PasswordAuthentication no
246+
PermitRootLogin no
247+
X11Forwarding no
248248
{% endif %}
249249

250250
{% if ssh_server_match_group %}

0 commit comments

Comments
 (0)