VSFTPD installs the configuration on the SUSE Linux operating system

Source: Internet
Author: User
Tags anonymous ftp ftp connection insert connect syslog ssh linux

These two days on the SuSE installation and configuration of FTP, encountered a lot of problems, here to do a summary:

First, installation

SuSE's graphical user interface does a good job, so the installation process is relatively simple.

1, open Yast,software→software Management;

2, just start using SuSE Software Manager is very not accustomed to find the information needed in any place, but after a period of time, it feels that its classification is more convenient, but also to provide users with more information. In Filter→package Groups, in the following tree list Productivity→networking→ftp, you can also expand the FTP node, select the Servers node;

3, on the left-hand side of the package list to select Vsftpd, and then click on the Accept button below, will be prompted to insert the disc;

4, insert the required disc, the system will automatically start the installation, installation completed, you can view the following file List Options page VSFTPD related to all the files.

Second, start the service

After the installation is complete, the VSFTPD is started as an independent service and does not accept xinetd management. The system automatically adds a service named VSFTPD to the list of services. The steps to start the service are as follows:

1, Yast→system→system Services (Run level);

2, in the list of services to select VSFTPD, click the Enable button below, start the service, Finish.

Note that it may not start when you start vsftpd, sometimes because the service it relies on does not start, such as Syslog, when Syslog is selected, click the Enable button. If you are still unable to start, you can restart the XINETD service and then start the VSFTPD service.

Iii. problems encountered

1, only allow anonymous users to log in

Phenomenon: FTP connection process, prompted to enter the user name, input this machine already has the user name Angel, get prompt: 530 This FTP server was anonymous only, login failed.

Reason: After installing VSFTPD, it defaults to anonymous FTP server, allowing only anonymous users to log on.

Workaround: VSFTPD has three server methods: Anonymous, local, and virtual user, where you need to modify the VSFTPD configuration to make it local. The VSFTPD configuration file is located in the/etc/directory with the name vsftpd.conf. About this profile on the internet has been a lot of experts to do a detailed analysis and explanation, and the document inside the notes are more detailed, here is no longer one by one explained. Here are just a few places to change:

Remove the Local_enable=yes before the # to make it available, to allow local users to log on, add listen_port=21 configuration entries, set listening port to 21; This step is optional, do not allow anonymous users to log on, will anonymous_enable= The value of Yes is changed to No and is set according to actual needs.

Restart VSFTPD Services: Service vsftpd restart. After startup, after testing, log in with local user Angel and their password, successful. Note: The above tests are performed on this computer (or after using SSH).

2, other machines can not connect the server

Phenomenon: After the native test passes, use FTP 192.168.1.8 on other machines (Windows or Redhat) to connect to the server, get connection closed by remote host or connection out hint information, Connection failed.

Cause: The SuSE firewall blocked access to the port used by the foreign machine for FTP.

Workaround: Release the firewall's limit of 20 and 21 ports used by FTP, as follows:

I> yast→security and users→firewall;ii> Select allowed Services in the list on the left, and it is felt that, even if an FTP server is installed, the servces to There are no FTP services available in the Allow list, but SSH, HTTP, HTTPS, Samba, and so on are all impressively listed, so use the advanced settings. Click on the Advanced button on the lower right method to open the Advanced Settings dialog box;iii> Enter 20 21 in the TCP ports, note that two port numbers are separated by spaces,ok;iv> next→accept, re tested, connected successfully, Log in using the Angel and its password already in the SuSE system, successful.

Note that although some of these problems are encountered under SuSE, they are still applicable in the configuration of VSFTPD in other operating systems.



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.