Deploy an FTP Server

FTP, the file Transfer Protocol, is one of the oldest network protocols still in common use on the Internet. It provides a simple way for systems to transfer files to and from a remote server over the network.
The name of the FTP server package in Red Hat Enterprise Linux 6 is vsftpd, which stands for Very Secure File Transfer Protocol Daemon. The server name is also called vsftpd.


Deploy an FTP server. Verify it is working and enabled.

Step 1: Install the vsftpd package.
            # yum install vsftpd*
Or
Go to: System  à Administration à Add/Remove Software.
Type vsftp then the find button.
Ensure that Very Secure Ftp Daemon has check mark and then click the Apply button.
Step 2: Start the vsftpd service
            # /etc/init.d/vsftpd restart
Or
Go to: System à Administration à Services. Find and highlight the vsftpd entry in the list on the left.
Click on the Start button up above.
Step3: Enable the vsftpd service
            #chkconfig vsftpd on
Or
Go to: System àAdministration àServices. Find and highlighted the vsftpd entry in the list on the left.
Click on the Enable button up above.
Step4: Publish a copy of /etc/hosts to the anonymous FTP document root.
Us Nautilus(as root) to copy  /etc/hosts to the  /var/ftp/ directory.

Step5: Test the FTP server on desktop with an ftp client(Nautilus) to connect to the server

The default configuration file supports anonymous download-only access to a chrooted tree located at /var/ftp/. This means that,
1. A remote FTP client can connect to the server as user anonymous or ftp with no password
2. Download files from the /var/ftp directory on the FTP server which are readable by its local ftp user.
3. It also permits users on the system to connect with their password, download any files on the system they can read, and upload files to any location on the system they can write.

4. If you plan to use the FTP server for above describe purpose, the default configuration settings are reasonable and do not need to be changed.

--- cheers !!!

No comments:

Post a Comment