Amazon AWS Filezilla transfer says : permission denied

+2 votes

I have my instance running on the Amazon AWS, it's test page is up.

Whenever I  try to SFTP my files to the server to display on 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 must 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, says permission denied.
Any Help!
Thanks

UPDATE: A screenshot from it 

enter image description here

May 3, 2018 in AWS by Flying geek
• 3,130 points
1,815 views

2 answers to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
0 votes
Best answer

Well, I can't see your screenshot that you have added here.

However, there are different scopes of approach

Take a look below : 

if you are using:

For Centos

sudo chown -R centos:centos /var/www/html

sudo chmod -R 755 /var/www/html

For Ubuntu

sudo chown -R ubuntu:ubuntu /var/www/html

sudo chmod -R 755 /var/www/html

For Amazon AMI

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

sudo chmod -R 755 /var/www/html

Hope it helps, otherwise feel free to revert to me.

answered May 3, 2018 by Cloud gunner
• 4,240 points

selected Aug 6, 2018 by Priyaj
0 votes

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

answered Aug 3, 2018 by Priyaj
• 56,120 points

Related Questions In AWS

0 votes
1 answer

Permission Denied: AWS EC2 FTP

This is a permission issue. You can ...READ MORE

answered Mar 28 in AWS by Kolki
44 views
0 votes
1 answer

AWS ssh access permission denied (public key issue)

For Ubuntu Instance, First, check whether you have ...READ MORE

answered May 13 in AWS by sunshine
• 640 points
9 views
0 votes
1 answer
0 votes
1 answer

How can I import Amazon AWS resume instance?

Go to the EC2 instance list and ...READ MORE

answered Jul 11, 2018 in AWS by Priyaj
• 56,120 points
34 views
0 votes
1 answer

Deploy Docker Containers from Docker Cloud

To solve this problem, I followed advice ...READ MORE

answered Sep 3, 2018 in AWS by Priyaj
• 56,120 points
60 views
+13 votes
2 answers
+1 vote
3 answers

Not able to pass params POST to AWS Lambda from Amazon API Gateway

For this template : application/x-www-form-urlencoded  This line below will ...READ MORE

answered Jun 13, 2018 in AWS by Cloud gunner
• 4,240 points
1,347 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.