I have managed to set up 2 domains on my account and have them both up and running, however how do I set SFTP or FTP access to those folders using firstname.lastname@example.org and email@example.com ?
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
I believe the way to do it would be to create 2 users on the remote system, set their home directories as the two respective folders and change the ownership on the contents of the folders to the correct user.
<br>1) useradd user1 -d /path/to/dir1
<br>2) useradd user2 -d /path/to/dir2
<br>3) passwd user1
<br>4) passwd user2
<br>5) chown -R user1 /path/to/dir1
<br>6) chown -R user2 /path/to/dir2
<br>and then you can use sftp user1@host etc :)