Centos7 installation and configuration ftp service

Summary: Use the following command to detect whether ftp has been installed rpm -qa |grep vsftpd If the output of the following content indicates that it is installed but not installed, you can use yum to install yum install vsftpd -y to start the service systemctl start vsftpd.service Set to boot systemctl enable vsftpd.service There are three main ftp configuration files, located in the /etc/vsftpd/ directory, they are: ftpusers This file is used to specify those users who cannot access the ftp server.

Use the following command to check whether ftp has been installed

rpm -qa |grep vsftpd
If the output of the following shows that it is installed and the
screenshot
is not installed, you can use yum to install

yum install vsftpd -y to
start the service

systemctl start vsftpd.service
Set to boot

systemctl enable vsftpd.service
ftp There are three main configuration files, located in the /etc/vsftpd/ directory, they are:
ftpusers This file is used to specify those users who cannot access the ftp server. user_list
This file is used to indicate that the default account cannot access ftp by default . Is empty




2. Username: FTP Password: FTP or empty
3. Username: USER Password: pass

Taking anonymous users as an example, we remove the following
anon_upload_enable=YES
anon_mkdir_write_enable=YES in the configuration file vsftpd.conf,
you can use the following command to view the default configuration

cat vsftpd.conf
screenshot

The system user is related to the ftp user. Next, create a system user to log in

adduser ftpuser
passwd ftpuser
screenshot
Now you can use the above account password to log in to the ftp server

ftp command line tool

yum -y install ftp

Use Yunqi Community APP, comfortable~

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326224107&siteId=291194637
Recommended