Afterward, you will need to key in the ftp command followed by the IP address of your server. To achieve this objective, you should be in a Linux desktop operating system environment. ![]() The next step is to test this FTP connection from the command line. $ sudo firewall-cmd -permanent -add-port=7000-7500/tcp $ sudo firewall-cmd -permanent -add-port=20-21/tcp The system firewall needs to accommodate it together with port range “ 20-21” for FTP data and traffic respectfully. $ sudo systemctl restart vsftpdĬheck Vsftpd Status in Rocky Linux Open FTP Ports on Firewalldīased on the configurations we made in the “ /etc/vsftpd/nf” file, the port range “ 7000-7500” caters to vsftpd passive communication. We can now start and check the status of our initially enabled vsftpd service. Once the nf file is opened, make sure the file corresponds to the following line entry edits: anonymous_enable=NOĪdd the following entries. If you don’t have the nano or vi editors, install it with the command: $ sudo yum install nano Access its configuration file with the following command. We need certain vsftpd configuration settings enabled and others disabled. ![]() $ sudo bash -c 'echo lst-user > /etc/vsftpd/user_list' The final step is for the FTP server to recognize this user ( lst-user) in its “ user_list” file. $ sudo chown lst-user: /home/lst-user/ftp_directory $ sudo chmod -R 750 /home/lst-user/ftp_directory $ sudo mkdir -p /home/lst-user/ftp_directory ![]() The user ( lst-user) now has full ownership of this directory on top of read, write, and execute privileges. The created user needs to be associated with an FTP directory upon a successful login into the FTP server.
0 Comments
Leave a Reply. |