I’ve worked out how to use sudo mkdir to create folders for static websites for subdomains but I cannot upload the files. I constantly get permission denied.
I’m using Wise-FTP 10 using an SFTP connection. The username and password are the admin ones used for SSH to set up the box in the first place.
That admin user might not have write permissions to the directory you created with sudo. You can change the ownership with the chown command. It’s probably also a good idea to change the group ownership to user-data, and make sure the group permissions are set correctly.