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 |
What are the permissions on /var/www?
|
777 root:root:
|
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. |