Page 1 of 1

VestaCP, FileZilla and Google Cloud VM

Posted: Mon Sep 04, 2017 9:44 am
by africantearoa
Hi,

I'm trying to set up a website on a Google Cloud VM, and have been struggling the whole day with this.

I've currently got a VM running Debian GNU/Linux 8 (jessie) and VestaCP.
The website is currently up ("example.com powered by Vesta"). What I'm trying to do now is figure out how to access the relevant folder to upload the contents of the website.
I've been trying to do this with FileZilla:
- I can connect to the VM server itself using the external IP and the SSH keys, but I don't have permission to the website folder (home/admin/web/example.com). I can access most other folders, but cannot move files into them - so I suspect this is an issue with the user account that I'm connecting with, but I have no idea how to tell or how to rectify this.
- I've tried setting up FTP access through Vesta, but when putting in the settings (username, password, IP, port 21) into Filezilla, the connection times out.

I've been trying to read up on this topic, but I don't even know where to begin. If someone can tell me how to set FileZilla up, or just a place to learn about this stuff, that'd be great.

Re: VestaCP, FileZilla and Google Cloud VM

Posted: Mon Sep 04, 2017 10:30 am
by mehargags
You need to open specific ports in your Google cloud Firewall also.

Re: VestaCP, FileZilla and Google Cloud VM

Posted: Mon Sep 04, 2017 10:58 am
by africantearoa
Thanks, I had forgotten about that. I've opened port 21, but still the same problem.

If it helps: I connect as 'User' (which has it's own 'User' folder), whereas the Vesta /web/ folder is in the 'admin' folder. I just don't know how to connect as admin.

Re: VestaCP, FileZilla and Google Cloud VM

Posted: Mon Sep 04, 2017 11:19 am
by africantearoa
Alright, I've figured it out.
I had to log into the VM and switch to the admin user with sudo su admin. Then I changed the permissions on the files in the web directory with chmod.
I don't feel super comfortable playing around with permissions, but I'm not looking to publish the site yet so I'm happy for the time being.
If anyone could tell me how to get the Vesta FTP functioning without the need to mess with the security like this, that'd be great.

Re: VestaCP, FileZilla and Google Cloud VM

Posted: Tue Sep 05, 2017 12:12 pm
by mehargags
africantearoa wrote: If anyone could tell me how to get the Vesta FTP functioning without the need to mess with the security like this, that'd be great.
Simply

Code: Select all

chown -R <vestauser>:<vestauser> /home/<vestauser>/web/public_html
That should allow you to access/edit/del files through any user that you create for FTP