FTP Server Configuration in Redhat Linux

  • Share
  • CevherShare
  • Share

FTP Stands for File Transfer Protocol. FTP is a protocol used to transfer files from one machine to a server. In general most FTP are used for website file uploading in web server through remote login. All web server have the facility of ftp login and ftp file transfer. Most browsers will support ftp connection.

 

 

Here we are going to configure ftp server in redhat linux.

Port Number:  20 & 21

Package Name:  vsftpd

Service Name:  vsftpd

 

Sever Side Configuration

#yum install vsftpd*

To configure ftp server, do the following changes in vsftpd.conf file

#vim /etc/vsftpd/vsftpd.conf

 Line –> 12

 anonymous_enable=YES  (for download rights)

Line –>27

anon_upload_enable=YES  ( for upload)

Line –>31

 anon_mkdir_write_enable=YES   ( for directory creation)

The Contents uploaded from remote system will be inside this pub directory /var/ftp/pub

#service vsftpd restart

#chkconfig vsftpd on

 

Change Directory Permission For upload

Files from remote login will be uploaded only inside   /var/ftp/pub . Without changing the directory permission we can’t upload the files inside the pub ( /var/ftp/pub) directory

We have to change directory permission for /var/ftp/pub with full rights

#chmod  777 /var/ftp/pub

 

Client Side

After FTP server configuration, we have to login through client system.

#ftp<space><server IP Address>

#ftp 192.168.1.254

ftp server : ftp or anonymous

password: <enter>

After login into ftp account go into pub directory, here only you can upload your files or download files.

 

ftp>cd pub

Download

>mget <filename>

>mget abc.txt

 

Upload

>mput <filename>

>mput abc1.txt

 

To Create Directory

>mkdir <directory name>

>mkdir user1

 

To exit

>bye

 

Vulnerabilities in FTP Connection

Some of the vulnerabilities in FTP connection are

  • Bounce attacks
  • Spoof attacks
  • Brute force attacks
  • Sniffing
  • Username protection
  • Port stealing

 

prasad

About prasad

Prasad K has written 111 post in this blog.