step by step procedure to configure and use FTP service in RHEL 7/8
FTP Sever
File Transfer Protocol (FTP) is a standard network protocol used to transfer files from one host to another over a TCP-based network, such as the internet. FTP is a client-server protocol, with separate control and data connections between the client and the server.
An FTP server is a computer that runs FTP server software and listens for FTP client connections. When an FTP client connects to the server, the client can send commands to the server to download or upload files, or perform other tasks related to file management and information exchange.
To use FTP, you'll need an FTP client program on your computer, such as FileZilla or WinSCP. You'll also need the login credentials (username and password) for an FTP account on the server. Once you have these, you can connect to the server and start transferring files.
It's important to note that FTP is an insecure protocol, as it transmits data and login credentials in plain text. For this reason, it is generally recommended to use a secure alternative such as SFTP (FTP over SSH) or FTPS (FTP over SSL/TLS) for transferring sensitive files.
In this video I have provided the detailed step by step procedure to configure and use FTP service in RHEL 7/8.
Please follow below steps to configure FTP Service:
1. Login as root user and configure YUM if not done earlier. Please follow this link to configure YUM in RHEL 7.
2. Install FTP and VSFTPD packages from Repository.
# yum install ftp vsftpd -y
3. Enable VSFTPD service to auto start after boot.
# systemctl enable vsftpd
4. Start VSFTPD service.
# systemctl start vsftpd
5. Add service in the firewall so that the firewall doesn't block it.
# firewall-cmd --permanent --add-service=ftp
6. Restart the firewall service.
# firewall-cmd --reload
7. Make required changes in /etc/vsftpd/vsftpd.conf file after taking its backup and then save it.
# cd /etc/vsftpd
# cp vsftpd.conf vsftpd.conf.bak
# vim vsftpd.conf
8. Test FTP service on localhost, provide requested credentials of FTP user.
# ftp localhost
or
# ftp 192.168.1.108 (Your IP Address)
9. Login at client machine and FTP, provide user credentials.
You are done. Now you can copy or paste file using below commands:
get ==. to copy file from server
put == to paste file on server
mget and mput for multiple files.
No comments:
Post a Comment