Using PURE-FTPD to build an FTP service
- PURE-FTPD is easier than vsftp.
- Installation
[[email protected] ~]# yum install -y epel-release[[email protected] ~]# yum install -y pure-ftpd
- Specify the password configuration file
[[email protected] ~]# vim /etc/pure-ftpd/pure-ftpd.confPureDB /etc/pure-ftpd/pureftpd.pdbvim /etc/pure-ftpd/pure-ftpd.conf//找到pureftpd.pdb这行,把行首的#删除
- Turn off the VSFTPD service, turn on the PURE-FTPD service
[[email protected] ~]# vim/etc/pure-ftpd/pure-ftpd.conf [[email Protected] ~]# systemctl stop vsftpd[[email protected] ~]# systemctl start pure-ftpd[[email protected] ~]# Netstat-lntpactive Internet connections (only servers) Proto recv-q send-q Local address Foreign Address State Pid/program name TCP 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 593/RPCBI nd TCP 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 1062/nginx:master TCP 0 0 0.0.0.0:20048 0.0.0.0:* LISTEN 937/rpc.mountd TCP 0 0 0.0.0.0:21 0.0.0.0:* LISTEN 1627/pure-ftpd (SER
- Create a test directory and a regular user, and change the genus owner
[[email protected] ~]# mkdir /data/ftp[[email protected] ~]# useradd -u 1010 pure-ftp[[email protected] ~]# chown -R pure-ftp:pure-ftp /data/ftp
- Create a virtual user to map to the system user and specify the home directory
[[email protected] ~]# pure-pw useradd ftp_usera -u pure-ftp
- Generate a password for PURE-PW recognized files
[[email protected] ~]# pure-pw mkdb
- Test
[[email protected] ~]# touch /data/ftp/111.txt[[email protected] ~]# lftp [email protected]口令: lftp [email protected]:~> ls drwxr-xr-x 2 1010 pure-ftp 21 Jun 25 20:58 .drwxr-xr-x 2 1010 pure-ftp 21 Jun 25 20:58 ..-rw-r--r-- 1 0 0 0 Jun 25 20:58 111.txt
Xshell Transferring files using xftp
- Download and install XFTP5 software to your computer first
- Again in the Xshell log in the server, using the shortcut key Ctrl+alt+f can open the interface, double-click to transfer files. Extended
- Vsftp use MySQL to store virtual users and verify
- Active and passive mode of FTP
Xshell using XFTP to transfer files, using PURE-FTPD to build FTP service