How to configure Linux ftp server and client

What is FTP?

FTP, the File Transfer Protocol, is one of the original network applications developed with the TCP/IP protocol suite. It follows the standard model for network services, as FTP requires a server and client  ,  FTP is to solve the need to publish documents and software so that people could get them easily from other computer systems on the network. On the FTP server, files were organized in a directory structure; users could connect to the server over the network ,and download and uploads files from the server.

FTP uses TCP ports 20 (for ftp data) & 21 (ftp program).
What is vsftpd?


The Very Secure FTP Server (vsFTPd) is the only FTP server software included in the Red Hat Linux distribution , vsFTPd is becoming the FTP server of choice for sites that need to support thousands of concurrent downloads. It was also designed to secure your systems against most common attacks.
Configuration Files




/etc/vsftpd/vsftpd.conf  : Main Configuration File

/etc/vsftpd/chroot_list  : Contains Users list to deny permanently

Installing Packages 

#rpm  -ivh  vsftpd-**.rpm

or #Yun install vsftpd*


Configuration

#vi /etc/vsftpd/vsftpd.conf

Allowing  or denying “anonymous” upload to FTP

anonymous_enable=NO

Allowing Local user =s to access FTP

local_enable=YES



Limit users to their “home directory” only.

chroot_local_user=YES

Create file /etc/vsftpd/chroot_list

If you want any user to deny FTP access add to this file.



Starting  ftp service

#service vsftpd start

#chkconfig vsftpd on



Client Side Configuration 

Install The Package FTP

#yum install ftp


Create User for FTP

#useradd -d /opt/user1 user1  (-d for  home directory, user1 is username )


Connect to FTP Server

#ftp  192.168.198.129 (FTP server IP) from browser also you can connect just type ftp://frp server ip


To Download and Upload files 

You can use "put" for upload and "get" for downloading files from ftp

ftp>put filename (To upload )

ftp>get filename (to Download files)

How to configure Linux ftp server and client How to configure Linux ftp server and client Reviewed by TecGeeks News on February 14, 2017 Rating: 5

No comments:

Get Your Business Online Now


Powered by Blogger.