Page 1 of 1

How to Config FTP's user can not out of Home Directory ?

Posted: Wed Jul 08, 2015 3:39 pm
by phuangkeo
Dear All guys i am beginner of VestaCP. i try to use ftp log in by filezilla to web site that created from vestacp'user but it can go out of the owner's directory (home directory ) so i want to user's FTP can not go out of home directory how to config it ? i follow this content but notwork
http://superuser.com/questions/370953/h ... -with-sftp

SFTP

Edit /etc/ssh/sshd_config:

Set subsystem sftp internal-sftp if necessary.

Add the following:

Match user theUserName
ChrootDirectory %h
ForceCommand internal-sftp

thanks so much