Linux-ftp Install

Source: Internet
Author: User
Tags ftp port number

FTP Installation

Yum Install vsftpd

Vi/etc/vsftpd/vsftpd.conf (can be backed up, but not placed in this directory, or start VSFTPD

It will also load its backup file, reporting a startup error, because two profiles cannot be loaded at the same time)

Add Passive mode FTP port number range

Parameter settings:

pasv_min_port=2100

pasv_max_port=2199

=====

Comment Anonymous_enable=yes

Open

Chroot_list_enable=yes

Chroo_list_file=/etc/vsftpd/chroot_list

Add at end of file

Userlist_deny=no

======

Add FTP User

Useradd-g ftp-s/sbin/nologin Ftpuser

passwd Ftpuser

Add Ftpuser to User_list

Vi/etc/vsftpd/user_list

Add Ftpuser at the end

====

Adding an FTP user to the Chroot_list file

Add Ftpuser at the end of the new chroot_list in the/ETC/VSFTPF directory

====

Close Serlinux

vi/etc/rc.local file end Add Setenforce 0

====

Open FTP port

Vi/etc/sysconfig/iptables

Add at the end

-A input-m state--state new-m tcp-p TCP--dport 21-j ACCEPT

-A input-m state--state new-m tcp-p TCP--dport 2100:2199-j ACCEPT

=====

Restart Service iptables Restart

====

Service VSFTPD Restart

If you start an error, see if 21 or 22 ports are occupied

NETSTAT-NATP | grep 21/22

Linux-ftp Install

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.