I need a little help with configuring Ubuntu Server 14.04, apache2 and SFTP for multiple separate users. Every user needs to have website in his home directory, for example: /home/user/public_html
available using http://user.mydomain.com
. Also every user must be able to make SFTP and SSH connection but access must be restricted to /home/user
. I don't know if it matters but all users will be using php, mysql and git on their accounts.
I've tried a lot of tutorials to achieve what I need but none of them worked for me. Every time when one thing works well other breaks :/
I will be grateful for any kind of help with this. Links, documentation, books are welcome.