亚马逊AWS Filezilla的转让权限被拒绝 [英] Amazon AWS Filezilla transfer permission denied
问题描述
我有亚马逊AWS运行我的实例,测试页面了。
I have my instance of the Amazon AWS running, test page is up.
我想将文件SFTP服务器以显示自己的网站。我已经FileZilla中连接到AWS服务器,但是当我试图从我的本地机器移动文件到/ var / www / html等目录中,它说权限被拒绝。
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.
我想通了,我可以移动文件到/ home / EC2用户目录。所以,我的文件在服务器我猜。但是,当我试图从那里将它们移动到在/ var / www / html等目录中,它仍然不会动他们,权限被拒绝。
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.
我一直在研究这个约2小时,但现在我一直没能找到这个问题的答案。
I've been researching this for approximately 2 hours now but I haven't been able to locate the answer to this.
任何帮助是极大的AP preciated,我是如此接近!哈哈
Any help is greatly appreciated, i'm so close! Haha
感谢
更新
推荐答案
要允许用户 EC2用户
(亚马逊AWS)的写访问公共Web目录(/ var / www / html等),
通过腻子或终端输入这个命令,作为根用户须藤
:
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的:
连接到Amazon EC2文件目录使用FileZilla中和SFTP(视频)
这篇关于亚马逊AWS Filezilla的转让权限被拒绝的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!