FTP File Transfer Protocol
- Check for
ftp
using the command rpm -qa | grep ftp
- Install
vsftpd
using the command dnf install vsftpd
in Fedora/RHEL based distros
- Edit the
vsftpd.conf
file using vim /etc/vsftpd/vsftpd.conf
- Find the following lines and make the changes as shown below,
- Disable anonymous login
anonymous_enable=NO
- Uncomment
ascii_upload_enable=YES
ascii_download_enable=YES
- Uncomment -Enter your welcome message(Optional)
ftpd_banner=Welcome to UNIXMEN FTP services
- Add at the end of this file
use_localtime=YES
systemctl start vsftpd
systemctl enable vsftpd
systemctl stop firewalld
- TIP : Instead of stopping the
firewalld
, we can allow for the default port 21 in the firewalld
systemctl disable firewalld
- Install FTP client on the client server using
dnf install ftp
Commands to transfer files
ftp ip_addr
- Enter username and password
bin
hash
put fileName
bye