How to hide folder in SFTP for a user

Asked

Viewed 200 times

1

Well I create a new user on my host for access to devs, logging in through Putty with the account created only has access to their folder.

but when entering SFTP the folders of the host user can be accessed as I can hide the root folders in SFTP ?

  • Know that SFTP is a protocol, secure FTP protocol and not a server, Voce does not enter an SFTP, Voce uses SFTP to enter some server. Which Voce FTP server have you installed? It just happens to be vsftp?

1 answer

0

I don’t know if this helps you, but it is possible to limit the user only to your home as below;

Documentation Linux FTP

there are options within the /etc/vsftpd.conf to make the FTP more secure. to limit users to staying only inside the directory home, comment on the line below:

chroot_local_user=YES

you can also limit by a list as below:

chroot_list_enable=YES
chroot_list_file=/etc/vsftpd.chroot_list

create the file as for example /etc/vsftpd.chroot_list, putting a username per line, then restart the sftp

sudo /etc/init.d/vsftpd restart

Browser other questions tagged

You are not signed in. Login or sign up in order to post.