LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   sftp chroot directory (https://www.linuxquestions.org/questions/linux-software-2/sftp-chroot-directory-4175513972/)

sniper8752 08-08-2014 07:42 AM

sftp chroot directory
 
I have a ftpuser, and am trying to limit them to the /var/www directory. When I sftp, it is not able to connect. But if I have the directory set to /home, then it is able to connect. This is the code that I'm using to chroot:

Code:

Match User ftpuser
    ChrootDirectory /var/www
    AllowTCPForwarding no
    X11Forwarding no
    ForceCommand internal-sftp

In filezilla, I get the error about a network error, and that software caused the connection abort.

Dudydoo 08-08-2014 10:27 AM

What are the permissions on /var/www?

sniper8752 08-08-2014 03:58 PM

777 root:root:

Dudydoo 08-10-2014 10:31 AM

The permissions should be 755 or ssh will complain. Also check sshd logs for any other clues.

Check that ssh is open on your firewall too.


All times are GMT -5. The time now is 02:46 PM.