![]() ![]() Run the following command to add the new user to the vsftpd user_list. sudo chown ftp_user:ftp_user -R /home/ftp_user/Ħ. This command makes ftp_user the file owner. Run the following command to change the ownership of the /home/ftp_user file. Run the following command to create a password for the user: sudo passwd ftp_userĥ. Note: In the preceding example, replace ftp_user with a user name of your choice.Ĥ. Run the following command to add the FTP user: sudo useradd -m ftp_user In addition to the preceding example, edit the following variables for your operating system.Īmazon Linux 2 and CentOS chroot_list_file=/etc/vsftpd/chroot_listuserlist_file=/etc/vsftpd/user_listĭebian and Ubuntu: chroot_list_file=/etc/vsftpd.chroot_listuserlist_file=/etc/erlistģ. The following parameters are specific to operating systems. Update your configuration file so that only one is set to YES. Also, the listen and listen_ipv6 parameters can't be in the file at the same time. For the preceding example, ports 1000-21999 are activated on the custom and Lightsail firewall. Make sure that you activate the ports that you're planning to use for FTP on your instance firewall. To customize the port, change the listen_port to the port that you want, and set connect_from_port_20 to NO. However, for security reasons, custom port 10021 is used as the port for FTP in the preceding example. Note: Port 21 is the default port for FTP. The following parameters are common to all operating systems. ![]() In the following example, update the variables for your use case. Amazon Linux 2 and CentOS: /etc/vsftpd/nf.The nfig file location varies depending on your operating system: Edit the nfig file to update the variables for your environment. If you get an error stating that the package isn't available, then run the following command to update the package lists: sudo apt update -yĢ. Ubuntu and Debian: sudo apt install vsftpd -y Run the following command to install the VSFTPD package:Īmazon Linux 2 and CentOS: sudo yum install vsftpd -y For information on creating an SFTP user, see How do I create an SFTP user on my Lightsail instance? Set up an FTP server and FTP userġ. For information on using SFTP, see Connecting to your Linux or Unix instance in Amazon Lightsail using SFTP. SSH File Transfer Protocol (SFTP) is a more secure way to connect to your instance and transmit data. Note: FTP transmits all data and passwords as plaintext.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |