Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Amazon AWS Filezilla transfer permission denied

I have my instance of the Amazon AWS running, test page is up.

I am trying to SFTP the files to the server to display my website. I have Filezilla connected to the AWS server but when I try to move the files from my local machine to the /var/www/html directory, it says permission denied.

I just figured out I CAN move the files to the /home/ec2-user directory. So my files are on the server I guess. But when I try to move them from there to the /var/www/html directory, it still won't move them, permission denied.

I've been researching this for approximately 2 hours now but I haven't been able to locate the answer to this.

Any help is greatly appreciated, i'm so close! Haha

Thanks

UPDATE

enter image description here

like image 379
zburns12 Avatar asked Oct 29 '13 02:10

zburns12


People also ask

How do I fix file permissions denied in FileZilla?

Check the SSH public key (. pub) on the local computer Make sure you are using the correct public key in the authorized_keys file. To add a new public key to an SFTP client with FileZilla. Go to Settings > Connection > SFTP > click on “Add key file…” Browse through your local files and import the right key.


Video Answer


1 Answers

To allow user ec2-user (Amazon AWS) write access to the public web directory (/var/www/html),
enter this command via Putty or Terminal, as the root user sudo:

chown -R ec2-user /var/www/html 

Make sure permissions on that entire folder were correct:

chmod -R 755 /var/www/html 

Doc's:

Setting up amazon ec2-instances

Connect to Amazon EC2 file directory using Filezilla and SFTP (Video)

Understanding and Using File Permissions

like image 133
Black Sheep Avatar answered Oct 19 '22 23:10

Black Sheep