Apply options only to members of a specific group.
Section: sshd_config Patterns
Match block by group
sshdconfig
sshdconfig
Match Group sftpusers
ChrootDirectory /srv/sftp/%u
ForceCommand internal-sftp
X11Forwarding no
AllowTcpForwarding noExplanation
Apply options only to members of a specific group.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing sshd_config Patterns
Disable password authentication
Require key-based authentication on the server.
Enable public key auth explicitly
Ensure public key authentication is on.
Customize AuthorizedKeysFile
Point to one or more authorized_keys paths.