copy files to ubuntu webserver
Posted on 2014-09-17
Hi, I setup an Ubuntu instance on AWS EC2 and install LAMP webserver. I tried to copy a file test.php to /var/www/html folder, but it said Permission denied
I used the following command in Terminal on my Mac:
scp -i mypem.pem test.php email@example.com 2.compute.amazonaws.com:/var/www/html
My questions are:
1. Do I need to change the /var/www/html folder permission before I copy files to it?
2. Besides the SSH, can I use a GUI tool to do the files transferring?
Please advise. thanks