Tuesday, 7 November 2017

Configure FTP Server on RHEL6 for Files moving from Server to Client

This blog explains how to configure FTP Server in Linux step by step with examples.

This is required when we are installing WebSphere Commerce Server, Instance creation process will create WebServer on Remote Box [Remote IP]

Step 1: Configur host entries in both Linux boxes
vi /etc/hosts

Step 2: On Application Server box (FTP server)
vsftpd and ftp package is required for FTP Server. Check whether package is installed or not.
#rpm -qa vsftpd  [If vsftpd rpm is not installed. install it first]
#rmp -qa ftp
#yum install ftp  [installing ftp rmp]
#yum install vsftpd  [installing vsftpd rmp]
#service vsftpd status [checking vsftpd status]
#service vsftpd start/stop/restart [start/stop/restart commands]

#service xinetd status
#service xinetd start
#service xinetd restart

FTP Server is by default configured to listen on port 21. Port 21 must be opened if you have configured firewall. The configuration of a firewall for an FTP server is a relatively simple process.

#iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT

Step 3: On WebServer Server box (ftp server)
#telnet RAMAAPPSERVER.ril.com:21
#telnet RAMAAPPSERVER.ril.com 22
#telnet 10.1.1.2 22
#yum install ftp
root@RFDRPPWCSCOM ~]# ftp RAMAAPPSERVER.ril.com
Connected to RAMAAPPSERVER.ril.com (10.129.34.99).
220 (vsFTPd 2.2.2)
Name (RAMAAPPSERVER.ril.com:root):

Reference Links:
http://computernetworkingnotes.com/network-administration/how-to-configure-ftp-server-in-rhel6.html
https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/6/html/Managing_Confined_Services/chap-Managing_Confined_Services-File_Transfer_Protocol.html

No comments:

Post a Comment