I have set up my machine so that my group "sftponly" can access the users home folder. But right now, the users in the group don't have permission to other folders, but they have permission to see them.
How can I change this so that the users in the group only can see their home folder?
My OS is Ubuntu, this is in my /etc/ssh/sshd_config
:
Match Group sftponly
ChrootDirectory %h
AllowTCPForwarding no
X11Forwarding no
ForceCommand internal-sftp
Right now, it looks like this when a user connects with SFTP:
Right now they can see all folders, but I only want them to be in the folder they start in, so they can't go up in the folders and see the other users' home folders.
ChrootDirectory %h
so each user is chrooted in its own home directory?All components of the pathname must be root-owned directories that are not writable by any other user or group.
sftponly
insshd_config
, but, at the beginning of your question, you specifyftponly
as the group to which your users belong.