Step 4 » Add FTP service in firewall to allow ftp ports ~]# firewall-cmd -permanent ~]# firewall-cmd -reload Step 3 » Now restart vsftpd service and make it start automatically after ~]# systemctl restart ~]# systemctl enable rvice Take a backup copy before making changes ~]# mv /etc/vsftpd/nf /etc/vsftpd/ open the file and make changes as ~]# nano /etc/vsftpd/nfFind this line anonymous_enable=YES ( Line no : 12 ) and change value to NO to disable anonymous FTP access.Īnonymous_enable=NOUncomment the below line ( Line no : 100 ) to restrict users to their home directory.Ĭhroot_local_user=YESand add the below lines at the end of the file to enable passive mode and allow chroot writable. Step 2 » After installation you can find /etc/vsftpd/nf file which is the main configuration file for VSFTP. Step 1 » Update your repository and install VSFTPD package ~]# yum ~]# yum -y install vsftpd Here i've used VSFTP package which is secure and less vulnerable. This guide contains configuration steps for both FTP and SFTP as well as user creation. This guide helps you to setup ftp server on centos 7. FTP server is used to exchange files between computers over network.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |