I have succeeded in getting SSH/SFTP access to my server enabled. At current, generic SSH is not allowed, only SFTP. When a user that is allowed to logs into the SFTP server, they chroot into /home/%u. I would like to change that to:
/var/www/vhosts/www.mysite.com/htdocs,
where the chroot is the dir www.mysite.com, and the writeable directory is htdocs.
However, when I attempt to do this, I get something like "broken pipe. exiting". And when I mess with the permissions, I get "you don't have permission to access / on this server, when trying to view the site in a browser.
what am I doing wrong? What do the permissions have to be?
/var/www/vhosts/www.mysite.com/htdocs,
where the chroot is the dir www.mysite.com, and the writeable directory is htdocs.
However, when I attempt to do this, I get something like "broken pipe. exiting". And when I mess with the permissions, I get "you don't have permission to access / on this server, when trying to view the site in a browser.
what am I doing wrong? What do the permissions have to be?