Ubuntu Install and configure the FTP server

Source: Internet
Author: User
Tags ftp access scp command

Used to upload files to the server using the SCP command, simple and secure, but the upgrade mechanism of WordPress need to use FTP access mode, so have to configure FTP server under the VPS, Linux configuration FTP server can choose Vsftp and wu-ftp, both have advantages. Personal comparison recommended Vsftp, in addition to Chinese garbled problem.

Vsftp is a GPL-based UNIX-like system used on the use of the FTP server software, its full name is very secure FTP from the names can be seen, the original intention of the creator is the security of the code.

WU-FTPD full name is Washington University FTP, the vast majority of Linux distribution package can be selected, WU-FTPD is a good performance of the server software, because it has a lot of powerful features and very large throughput, There are many FTP servers on the Internet that choose WU-FTPD.

1. Installing VSFTPD

1
Apt-get Install VSFTPD

2. Modify the/etc/vsftpd.conf, configure the FTP server, if you need a configuration, remove the Conf file corresponding to the # number before the line.

1234567891011121314151617
Listen=yes                     # Server monitoring #anonymous_enable=yes          # Optional, if you allow anonymous access to the server, select the Yeslocal_enable=yes               # Local host access allow write_enable =yes #               write Allow # anon_upload_enable=yes       # Optional, allow anonymous user uploads, # anon_mkdir_write_enable=yes  # Optional, Allow anonymous users to create folders Dirmessage_enable=yes          # Open Access folder message Xferlog_enable=yes             # turn on FTP logging #xferlog_file=/var/log/ Vsftp.log # Optional, if you need to adjust the location of the FTP log connect_from_port_20=yes       # Optional, allow the use of port 20th as a data transfer port secure_chroot_dir=/var/run/ vsftpd/emptypam_service_name=vsftpdrsa_cert_file=/etc/ssl/private/vsftpd.pem# the following needs to be manually added charset_filter_enable= YES      # Open Character set filter, solve garbled problem Charset_client=utf8            # client Character set Charset_server=utf8            # service-side character set

3. Adjust the service users, VSFTP installation will increase the FTP user group, will need to use the FTP user to add to the group, if you need to allow uploading files, open the corresponding directory write permissions.

4. Open the system firewall to allow external access

1234
Iptables-a input-p TCP--dport 20-j acceptiptables-a input-p tcp--dport 21-j ACCEPT iptables-save
    • This article from: Hobby Linux Technology Network
    • This article link: http://www.ahlinux.com/ubuntu/8519.html

Ubuntu Install and configure the FTP server

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.