Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Web Server
  • Search

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

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
phuangkeo
Posts: 2
Joined: Thu Jul 02, 2015 1:58 pm

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

Post by phuangkeo » Wed Jul 08, 2015 3:39 pm

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
Top


Post Reply
  • Print view
1 post • Page 1 of 1

Return to “Web Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password