New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.


Comments
This should work. Add this to /etc/ssh/sshd_config and restart sshd
Match User username ChrootDirectory /home/username/This will disable SSH access for them too
Match User username ChrootDirectory /home/username/ ForceCommand internal-sftpMore in-depth blocking
Also to prevent a normal login on the machine