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