how to configure ftp server on redhat linux?

Answer Posted / amsin21

RHEL server comes with vsftpd which is the Very Secure File
Transfer Protocol (FTP) daemon. The server can be launched
via a xinetd or as standalone mode, in which case vsftpd
itself will listen on the network port 21.

Install vsftpd:
# yum install vsftpd

Turn on vsftpd ftp service:
# service vsftpd start

Open FTP port:
Open /etc/sysconfig/iptables file, enter:
# vi /etc/sysconfig/iptables

Append following line to open ftp port 21 before REJECT line:
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp
--dport 21 -j ACCEPT

Save and close the file. Restart the firewall:
# service iptables start

Test ftp server:

# ftp localhost

The default configuration file is /etc/vsftpd/vsftpd.conf file.
# vi /etc/vsftpd/vsftpd.conf

Is This Answer Correct ?    95 Yes 25 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

I would like to know whether Simado and Setu products are they EPBX or not ?

1933


What are system calls used for process management in linux?

587


what are different ways the context switch happens from user to kernel space or vice-versa ?

2144


Explain process management system calls in linux?

559