Take notes on Linux Private food from laruence (16) -- create an ftp service in Ubuntu

Source: Internet
Author: User
Tags ftp connection

1. install vsftpd, as shown in: sudo apt-get install vsftpd

2. Check whether the local machine can connect to ftp

As shown in, what should I do if I find login failed? Let's take a look at the vsftpd configuration file vsftpd. conf. Don't worry. I can't leave it. Enter bye and press Enter!

Failed. How are two vsftpd instances under my/etc. conf file. Do not worry about the/etc/init/vsftpd file below. conf. Next we will go to the configuration file/etc/vsftpd. conf to see

We can see from this sentence that anonymous users are disabled by default, and changed to anonymous_enable = YES. Press Esc and enter: wq to save the modification.

For use of the vi Editor, see: http://blog.csdn.net/dawanganban/article/details/9748023

Next, restart the ftp service.

Test local ftp connection again

Have you seen the above Login successful? OK. Next, we can remotely connect to ftp from the client. ping the ip address first to see if it is okay.

You can ping it. If you cannot, you can check the network cable and firewall (for Linux) and try ftp connection.

View directory

If you see the above information, it means OK. If some friends use win7 or win8, they will not see the above results. Close the firewall (for windows) and re-open the console and try again.

Let's start uploading files.

What's wrong? A serious file transfer error !, Now we are anonymous users. ftp does not allow anonymous uploads. Anonymous Users can only download files.

Now you can log on with a common user and upload the file. You will find that the root user cannot log on. Why? This is for the sake of security. By default, root upload is not allowed.

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.