Ubuntu10.10 configure the ftp server

Source: Internet
Author: User
Tags scp command
It is necessary to configure the FTP environment. Let's start to Configure FTP. The FTP software used by my‑tuserver is: vsftpd. Install vsftpd: first, log on to UbuntuServer and run sudoapt-getupdatesudoapt-getdist-upgradesudoapt-getinstallvsftpd. After the installation is complete, vsftpd is automatically started. Configure vsft

Configure the FTP Environment

It is necessary to Configure FTP. Then, Configure FTP,
The FTP software used by my Ubuntu Server is: vsftpd.
Install vsftpd:
First, log on to the Ubuntu Server and run:
Sudo apt-get update
Sudo apt-get dist-upgrade
Sudo apt-get install vsftpd
After the installation is complete, vsftpd is automatically started.

Configure vsftpd:
Run "sudo nano/etc/vsftpd. conf". Let's modify the vsftpd configuration file to make vsftpd work as required, because the default configuration is almost unavailable;
Find the line "anonymous_enable = YES" and change "YES" to "NO", so that anonymous login is not allowed;
Find the line "# local_enable = YES" and remove the previous line # to allow local users to log on (that is, users on Ubuntu Server, such as my xkedu );
Find "local_enable = YES" and add "local_root =/var/www/". After logging on, the user will directly go to the "/var/www/" directory, by default, it is switched to the root directory, which obviously does not work;
Find "# write_enable = YES" and remove comments to enable the login user to write files. This is a required option;

Use FTP:
After simple configuration, use "sudo/etc/init. d/vsftpd restart to restart vsftpd. Next, use Gftp or another FTP tool to connect to "192.140.30.X". Enter your username and password on the Ubuntu Server. After the logon is successful, we should be able to see all the files under/var/www!
Now, uploading something to the Ubuntu Server will no longer require the scp command. Enjoy Ftp fast and convenient!
FTP is a simple introduction.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.