57, Xshell use xftp transfer files, use PURE-FTPD to build FTP service

Source: Internet
Author: User

57, Xshell use xftp transfer files, use PURE-FTPD to build FTP service

I. Xshell using XFTP to transfer files

Find XFTP6 Download, select the above is free of charge, fill out after the point submit (Submit).

Then send an email to your mailbox, enter the email, click the download link, download it and install it.

Then enter the Xshell, select the open session, press Ctrl+alt+f can see 192.168.93.130/root directory on the XFTP6; if you press ctrl+alt+f, close Xshell, XFTP6 , then connect to Linux, and then press Ctrl+alt+f to see the/root directory.

This xftp is also the SSH protocol to go, in the/root directory, select the file, double-click or directly to the left of the desktop, you can download, the desktop file can also be uploaded to the/root directory.


Ii. using PURE-FTPD to build FTP service

# Yum Install-y epel-release This package is in the extension source and needs to be installed without installation Epel

# CD/ETC/YUM.REPOS.D

# MV Epel.repo.1 Epel.repo changed this before, to change it back.

# yum install-y pure-ftpd installation pure-ftpd

# vim/etc/pure-ftpd/pure-ftpd.conf

Find pureftpd.pdb This line, the beginning of the # Delete

Pureftpd.pdb This line is a password configuration file, as with VSFTPD, you need to specify a password profile

# Systemctl Stop VSFTPD

Because PURE-FTPD service is also FTP service, also listens to 21 port, so want to stop vsftpd

# Systemctl Start pure-ftpd//start this service again

# MKDIR/DATA/FTP//Create a test directory to use for PURE-FTPD users

# Useradd-u 1020 pure-ftp//Create a system user

# Chown-r Pure-ftp:pure-ftp/data/ftp//belong to the main group change

PURE-PW command

# PURE-PW Useradd ftp_usera-u pure-ftp-d/data/ftp

//Create a Virtual User , (map system user) virtual user name ftp_usera,-u specifies who the mapped system user is,-d specifies the virtual user's home directory, and sets a password.

# PURE-PW MKDB

Then you can test it:

[[email protected] ftp]# Touch 123.txt

[[Email protected] ftp]# CD

[Email protected] ~]# lftp [email protected]

Password:

lftp [email protected]:~> ls

Drwxr-xr-x 2 1020 pure-ftp 11 20:02.

Drwxr-xr-x 2 1020 pure-ftp 11 20:02.

-rw-r--r--1 0 0 0 May 20:02 123.txt

At this point, the genus Master of 123.txt is actually root.

Change them to the genus Master Group

lftp [Email protected]:/> quit

[Email protected] ~]# chown pure-ftp:pure-ftp/data/ftp/123.txt

[Email protected] ~]# lftp [email protected]

Password:

lftp [email protected]:~> ls

Drwxr-xr-x 2 1020 pure-ftp 11 20:02.

Drwxr-xr-x 2 1020 pure-ftp 11 20:02.

-rw-r--r--1 1020 pure-ftp 0 may 20:02 123.txt

The genus is mapped into a UID, and the group is mapped into a group name in the system.


PURE-PW Useradd the same as the useradd of the system.

PURE-PW Usermod the same as the usermod of the system.

PURE-PW Userdel the same as the userdel of the system.

PURE-PW passwd change user password

PURE-PW Show View Users

PURE-PW mkdb the password into a file that pure-ftpd can identify.

PURE-PW list to list all the users


Extended

vsftp use MySQL to store virtual users and verify http://www.aminglinux.com/bbs/thread-342-1-1.html

Active and passive mode of FTP http://www.aminglinux.com/bbs/thread-961-1-1.html


57, Xshell use xftp transfer files, use PURE-FTPD to build FTP service

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.