Install, configure and setup FTP server in linux

Install, configure and setup FTP server in linux

In this post we are going to see how to install, configure and setup FTP server in linux machine. I am going to explain basic task of FTP server.

Linux FTP server is used to share file between linux machines. Files can be uploaded and downloaded using FTP servers. To access a FTP server you need FTP client. To access a FTP server from windows machine filezilla is the best FTP client. Filezilla is light weight and fast.

Install, configure and setup FTP server in linux

Install, configure and setup FTP server in linux

There are many type of FTP servers in linux. we are going to use VSFTP here.

How to install VSFTP server

I have copied all my RPM from DVD to /var/ftp/pub/Server for my easy access. Install the VSFTP rpm using rpm -ivh command for more details about rpm command check blog RPM command with examples in linux.

 

Install, configure and setup FTP server in linux

 

All the configuration files of VSFTPD server are located under “/etc/vsftpd/”. The main configuration file of VSFTPD server is “/etc/vsftpd/vsftpd.conf”. The default log file of VSFTP is /etc/vsftpd/vsftpd.conf

The port number of FTP server is 20 and 21. All the control connection are happen in the port 21. All the commands you send and the FTP Server response to those commands will go over the control connection. All the data connection are happen in the port 20. All the data transfer between FTP Server and FTP Client are happening via port 20. Support if you upload or download data using get or put command the data will pass through port 20.

 

Install, configure and setup FTP server in linux

 

How to start, stop and restart FTP Server

/etc/init.d/vsftpd start
/etc/init.d/vsftpd stop
/etc/init.d/vsftpd restart

or

service vsftpd start
service vsftpd stop
service vsftpd restart

How to find whether FTP service is running or not

/etc/init.d/vsftpd status

or

service vsftpd status

How to find whether FTP port is opened and listening or not

netstat -ntpl | grep 21

or

ps -ef | grep -i ftp

 




Leave a Reply

Your email address will not be published. Required fields are marked *