![]() ![]() Replace with the new username to be added: $ sudo adduser Īdd password for user with passwd: $ sudo passwd Set vsftpd service to automatically run when restarting server: $ sudo chkconfig -level 345 vsftpd onĪdd FTP user with adduser. Start vsftpd service: $ sudo /etc/init.d/vsftpd start Note that you may need to use chmod to change file permissions and allow FTP users to read and write to this folder: $ sudo find /var/www/html -type d -exec chmod 777 \ Add the following to the end of the file: local_root=/var/www/html Replace with the public IP of your EC2 instance: pasv_enable=YESĬhange the default FTP upload folder (optional). This line may already exist but is commented out with #: chroot_local_user=YESĪdd the following to the end of the file. This will restrict users to their home directories for security. ![]() This will disable anonymous FTP users: anonymous_enable=NO Use Linux's nano tool to open and edit nf from the command line: $ sudo nano /etc/vsftpd/nfĬhange anonymous_enable from YES to NO (optional). SSH into EC2 instance ( tutorial) and install vsftpd: $ sudo yum install vsftpd To restrict access to a specific IP address, replace 0.0.0.0/0 with your address, e.g. Source 0.0.0.0/0 opens the port to any IPv4 address. Next, add new inbound rules to allow access via FTP ports. See Amazon tutorial: Installing a LAMP Web Server on Amazon Linux Configure FTP on Instance Open FTP Portsįrom the console or the AWS CLI, create new security group for FTP access and attach to EC2 instance (optional) or edit an existing security group attached to EC2 instance. See Amazon tutorial: Getting Started with Amazon EC2 Linux Instances Install LAMP Stack on Instance AWS EC2 FTP Server Configuration Launch an EC2 Instance ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |