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.