Originally Posted by odie
hi linus guru,
Need your help, I would like to create ssh user that only has access to one folder existing Directory: /home/aps/logs
user can only have read only access on logs folder
Please see the "Question Guidelines" link in my posting signature. You don't provide any details, such as version/distro of Linux, or what you've done/tried so far, or what version of SSH. Since 4.8.1, you have a "ChrootDirectory" directive, which you can see in the SSHD documentation, or in the man page of sshd_config. The easiest course of action is to set your user(s) to be in a particular group, then shove something like this:
Match group jailedusers
Restart SSH, and any users in the "jailedusers" directory will ONLY see their home directory, and nothing else.