Learn a few days under the Linux FTP and SSH construction and use, so record. The primary purpose of learning FTP and SSH is to connect to a remote host and file transfer. No more nonsense, just talk!
FTP server 1. Environment construction
My system is archlinux, I am based on vsftpd to build, first need to install it: pacman-s vsftpd
The configuration file is then edited to open the /etc/vsftpd.conf(also possible in /etc/vsftdp/.vsftpd.conf)
Here is the contents of my configuration file:
In the above configuration file, we allow anonymous users to log in, and they have permission to delete and upload, but these operations are limited to 777 of the permissions of the directory. We configured the anonymous user to enter the directory by default /var/ftp/pub, we'd better set its permissions to 755, so that anonymous users this can access and download files in this directory, other operations are not possible. In addition, we want to create a directory with permissions of 777, and anonymous users can manipulate files in any of them. These actions are as follows (in this machine):
mkdir -p/var/ftp/pub
mkdir -p/var/ftp/upload
chmod 777 /var/ftp/upload
At this point, our environment has been built.
2. Using the example
Have a meal first
FTP and SSH detailed under Linux