Ftp and ssh are a bit like & amp; 20284;. ssh is mainly used to operate commands on remote servers, but ftp focuses on file transmission. it is relatively simple to install ftp on linux, I will share with you my experiences and experiences in installing and using ftp on ubuntu 1. installing ftpubuntu
Ftp and ssh are similar. ssh is mainly used to operate commands on remote servers, but ftp focuses on file transmission. it is relatively simple to install ftp on linux, I will share with you my experiences and experiences in installing and using ftp on ubuntu.
1. install ftp
Ubuntu is easy to install ftp directly using sudo apt-get install vsftpd, and then press Enter all the way to OK, as shown below:
2. edit/etc/vsftpd. conf as an administrator.
You only need to modify these items.
(1) listen = YES
(2) local_enable = YES
(3) anonymous_enable = NO (you can change it to YES if you are willing to log on anonymously)
(4) write_enable = YES
You do not need to modify the settings elsewhere. The second option means to allow local ftp connection. The fourth option means to enable write operations. if you do not modify the settings, you cannot perform operations on the ftp.
3. add users and user groups
(1) create a group
(2) create an ftp user
4. create an ftp directory and specify it to the corresponding user.
The command used to specify a folder to a user is the sudo usermod-d Directory username.
5. folder authorization
This step of operation is also very important. you have specified a directory for the user, but now the user has no operation permissions, and ftp is basically not available.
If you think the 777 permission is too high, you can change it to 755 or another type.
6. use 8uftp to connect to ftp
After the upload is successful, check whether the file has been uploaded on linux.
So far, ftp has been successfully installed and can be used.