For a user group I'd like to:
- Restrict SFTP access to a given directory
- Use a custom shell for TTY which takes care of only exposing what needs to be exposed from the system but that still need access to the entire root file system
So ultimately I'd like to perform and ChrootDirectory only for users from a certain group but also connected over a sftp session and avoid doing a ChrootDirectory for users connected over a TTY session. Can it be done through sshd_config?
Thanks