How to Install and configure FTP server in centos 7,8 / RedHat 7,8 / Fedora (Anonymous) :-
FTP stands for file transfer protocol and it is used to share files from one computer to another it computer. basically, it is based on the client-server model. It can be integrated with apache server or HTTP server to upload website files to the server. In this blog, we will create an anonymous ftp server using vsftpd package in centos 7,8 / RedHat 7,8 /Fedora.
1) Install the VsFtp (Very Secure File Tranfer Protocol) Package :-
2) Start and Enable the Service.
systemctl enable vsftpd
3) Apply firewall rule
4)Open your WebBrowser.
Now you start uploading the files that you want to share by ftp in /var/ftp/ directory.
after you upload your file make sure you update the SELinux context on the uploaded files as In Redhat, Centos, Fedora by default SELinux is enforcing the SELinux context of ftp files is “public_content_t”. you can just run the following command to update the context on the uploaded files.
We have configured FTP server successfully.
Now, let’s move to client side.
The Clients in the server network can access the FTP server just by opening their web server and searching ftp://<server_ip>
or the Clients can even access it by cli (terminal) by installing ftp client package.
Connected to 192.168.122.154 (192.168.122.154).
220 (vsFTPd 3.0.2)
Name (192.168.122.154:root): anonymous
331 Please specify the password.
Password:just press enter
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
227 Entering Passive Mode (192,168,122,154,189,155).
150 Here comes the directory listing.
drwxr-xr-x 2 0 0 6 Aug 03 2017 pub
226 Directory send OK.
Watch our Youtube Video for more detailed Explanation