Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to solve the problems encountered in applying Ftp in Suse

2025-04-11 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

In Suse application Ftp solution, many novices are not very clear about this, in order to help you solve this problem, the following small series will explain in detail for everyone, there are people who need this can learn, I hope you can gain something.

We will definitely think about a lot of questions and opinions during these two days of learning Suse, especially as Suse gets more and more attention from the public, problems will follow. Today's question is: how to solve the problem encountered when Suse uses Ftp.

I. Installation

The graphical user interface of Suse is very good, so the installation process is also relatively simple.

1. Open Yast, Software→Software Management;

2, just started using Suse software manager is not used to, can not find the information needed where, but after a period of time, feel that its classification is more convenient, but also for users to provide more information. In Filter→Package Groups, in the following tree list Productivity→Networking→Ftp, you can also expand the Ftp node and select the Servers node;

3. Select vsftpd in the package list on the left, and then click the Accept button below, which will prompt you to insert the CD;

4. After inserting the required CD, the system will automatically start installation. After installation, you can view all files related to vsftpd in the File List option page below.

II. Start-up service

After installation, vsftpd is started as a standalone service and is not managed by xinetd. A service named vsftpd is automatically added to the Service list. The steps to start the service are as follows:

1、Yast→System→System Services(Run level);

2. Select vsftpd in the service list, click the Enable button below, start the service, and Finish.

Note that when starting vsftpd, it may not start, sometimes because the service it depends on is not started, such as syslog. In this case, check syslog and click the Enable button. If it still doesn't start, restart the xinetd service and then start the vsftpd service.

III. Problems encountered

1. Only anonymous users are allowed to log in

Phenomenon: ftp connection process, prompt input user name, enter the user name angel, get prompt: 530 This FTP server is anonymous only, login failed.

Reason: After installing vsftpd, it defaults to an anonymous FTP server and only allows anonymous users to log in.

Solution: vsftpd has three server modes: anonymous mode, local mode and virtual user mode. Here, you need to modify vsftpd configuration to set it to local mode. The configuration file for vsftpd is located in the/etc/directory and is named vsftpd. conf. There are many experts on the Internet who have done detailed analysis and explanation about the configuration file, and the comments inside the file are also more detailed, so they will not explain it one by one. Here are just a few of the changes that need to be made:

◆ Remove #before local_enable=YES to make it available, indicating that local users are allowed to log in;

◆ Add the listen_port=21 configuration item, and set the listening port to 21;

◆ This step is optional. Anonymous users are not allowed to log in. Change the value of anonymous_enable=YES to NO, and set it according to actual needs.

◆ Restart vsftpd service: service vsftpd restart. After startup, in the test, use the local user angel and its password login, successful.

Note: The above tests are performed natively (or after logging in using SSH).

2. Other machines cannot connect to this server.

Phenomenon: After the local test is passed, use ftp 192.168.1.8 to connect to the server on another machine (Windows or Redhat), and get the Connection closed by remote host or Connection timed out prompt message, and the connection fails.

Cause: Suse's firewall prevents foreign machines from accessing the ports used by FTP.

Workaround: Release firewall restrictions on ports 20 and 21 used by FTP, as follows:

◆Yast→Security and Users→Firewall;

◆ Select Allowed Services in the list on the left, what makes people feel is that even if FTP server is installed, there is no FTP service to choose from in the Servces to Allow list, but SSH, HTTP, HTTPS, Samba, etc. are all in the column, so use advanced settings. Click the Advanced button in the lower right method to open the Advanced Settings dialog box;

◆ Enter 20 21 in TCP Ports, note that the two port numbers are separated by spaces, OK;

◆ Next→Accept, retest, connection successful, log in using the existing angel and password in Suse system, successful.

Note that although some of these issues are encountered under Suse, they still apply to vsftpd configurations on other operating systems.

This completes the steps for applying Ftp to Suse.

Did reading the above help you? If you still want to have further understanding of related knowledge or read more related articles, please pay attention to the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report