How to configure or Setup ftp server for Downloading file

Setup ftp server for downloading a file

Following steps are to configure or setup FTP Server for download a file from client machine..

  • Steps to configure setup ftp server for downloading a file:

 Read also : Linux FTP server

  1. Install the package
  2. Create some files in /var/ftp/pub directory
  3. Restart the service
  4. Make the service enable even after reboot of the system
  5. Connect from client and access the files and download it

 




  • Step1: Install the package
  • Install the package using yum or rpm command.

#yum install vsftpd* -y

 

     Okay now we are done with the installation(setup ftp server). Check it with 

#rpm -q vsftpd command

 

If you don’t have yum repository created, then installed it using rpm from RHEL 6 DVD

 

  • Step2: Copy or create files in “/var/ftp/pub” directory
  • Navigate to /var/ftp/pub directory and create some files in it

#cd/var/ftp/pub

#touch file{1..5}

                                                                                                                                   

  • Step3: Restart the ftp service

#service vsftpd restart

   

  • Step4: Make the service enable even after reboot of the system
  • To make a service enable use the following command

#chkonfig vsftpd on

 

  • Step5: Connect from client and access the files and download it
  • To access the ftp server the client should have “ftp” package installed. If not installed, install it using rpm, because yum will not work if ftp package is not installed.
  • Check whether ftp package is installed or not

#rpm -q ftp

 

  • To install ftp package either download it from redhat website or install it from RHEL6 DVD
  • Move to the package folder and installed it.

#rpm-ivh <Package name>

 

Check it by using rpm –q command

 

Now connect to ftp server using its IP

To connect to ftp server use the following command 

#ftp <ftp server’s IP>

#ftp 192.168.10.93

Use “ftp or anonymous” as login name

Press enter without giving any password

 

Navigate to pub directory and check the files available 

#cd pub

 

Note: When you run is command you can see that it showing that we are using passive mode.

  • Download some file using get or mget command

To download file use the following command

#get <file name> for single file

 

 

 #mget <file name> for multiple files

Before going for mget turn off the interactive mode, otherwise it will ask permission for every file you are downloading. Use #prompt command to turn off interactive mode.

 

 

Exit the ftp server and check whether the file are there or not 

To exit the ftp server either use

#bye or #quit

 

  • To connect to the setup ftp server graphically open web browser like Firefox type the ftp server’s ip address as following
  • ftp://192.168.10.93

These are the setup ftp server steps

2 thoughts on “How to configure or Setup ftp server for Downloading file

Leave a Reply

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