I guess I'm using SFTP since its connecting over the same port as ssh. Btw, there seems to be a lot of confusion on the net as to which one is which :P
I installed Proftpd all by myself, downloaded it from proftpd.org, compiled, made it work. And it does work too, since via normal ftp the server greets me with the custom message I set and all that.
I did not know that SFTP is independent and not related to proftpd. I did wonder about it though, I just don't have the knowledge yet. I guess this means that I can just go ahead and remove it?
It still leaves my original problem
Late night edit: while I was at it, I managed to update OpenSsh to 5.8. Server still works after restart :P
I tried playing around with what you wrote here
, but after restarting sshd my sftp client would not connect.
If you want to, you can close / kill this thread, since it is painfully obvious (even) to me that my problem is actually hidden in sshd and permissions and it has nothing to do with proftpd.
I just need 2 basic things: SFTP and a way for three users to write into 3 places, all under var/www/html. Can anyone help me achieve this in a reasonable time-frame?
1. Created the sftponly group.
2. Created a user that is located in /home/user1. Chowned recursively to root:root.
3. Mounted the /var/www/html/site1 directory to the /home/user1/site1 directory. Then to permit write access, I chowned recursively the /home/user1/site1 directory.
- this helps a lot. The part with the force user login directory is a must.