I have the situation where sshd should permit sftp only access to a group of users.
This is easily done by adding a match section like
Match Group groupname
ChrootDirectory /srv/ftp
ForceCommand internal-sftp
Now I need to exclude one user that is a member of this group. He should have normal shell access.
Match User username
ChrootDirectory ???
ForceCommand ???
What do I set here? Is it possible to unset configuration directives previuosly set with another matching section?
badusers
:Match Group badusers Address *,!192.168.0.0/16 PasswordAuthentication no
– Fonseca