Here we download data from FTP link
1. Make sure yum server is working on your RHEL machine
2. install vsftpd, ftp pakages
yum install vsftpd or
#rpm -ivh rpm -ivh vsftpd-2.2.2-11.el6_4.1.x86_64.rpm
yum install ftp or
#rpm -ivh ftp-0.17-54.el6.x86_64.rpm
3. make firewall off
#iptables -F
4. make enforcing permissible
# getenforce
[root@localhost packages]# getenforce
Enforcing
the setenforce 0
it is temporary solution to make enforcing permanently off do the changes under Selinux policy
5. service vsftpd restart
#service vsftpd status
to make service on permanently
#chkconfig vsftpd on
6. #getsebool -a | grep ftp
#setsebool -ftp_home_dir 1
#service vsftpd restart
#service ftp restart
to check working of ftp
[root@localhost ~]# ftp 198.182.52.51
Connected to 198.182.52.51 (198.182.52.51).
220-
230 Anonymous access granted, restrictions apply
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> binary
200 Type set to I
ftp> cd /pub/outgoing
250 CWD command successful
ftp> get CDC2015.tar.gz
local: CDC2015.tar.gz remote: CDC2015.tar.gz
227 Entering Passive Mode (198,182,52,51,143,50).
150 Opening BINARY mode data connection for CDC2015.tar.gz (51047711 bytes)
226 Transfer complete
51047711 bytes received in 92.6 secs (551.33 Kbytes/sec)
ftp> quit
221 Goodbye.