Answer the question
In order to leave comments, you need to log in
How to deny SFTP group access but leave regular SSH in terminal?
Please tell me how can I prevent a specific group from accessing SFTP, but still allow access to SSH.
Match Group users
X11Forwarding no
AllowTcpForwarding no
AllowAgentForwarding no
PermitTunnel no
ForceCommand internal-sftp
ChrootDirectory /home/%u
AllowGroups users
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question