Install FTP in SuSE and start related settings

Source: Internet
Author: User
Tags ftp connection

1 Installation

The root user executes yast2-> network services-> Network Services

Set the pure-FTP status to off and vsftpd status to on respectively, and click the button to complete the modification.

 

2 start

Most newer systems use the Xinetd super service daemon. Use "VI/etc/xinetd. d/vsftpd" to check its content, as shown below:
Disable = No
Socket_type = stream
Wait = No
If the option "/etc/vsftpd. conf" is "Listen = yes", cancel it.
Finally, restart xinetd with the following command:
$/Etc/init. d/xinetd restart

Iii. Problems Encountered
1. Only anonymous users are allowed to log on
Symptom: During the FTP connection, enter the user name and the existing user name Angel on the local machine. The following message is displayed: 530 This FTP server is anonymous only. Logon Failed.
Cause: After vsftpd is installed, the default value is anonymous FTP server, which only allows anonymous users to log on.
Solution: Vsftpd has three server modes: anonymous mode, local mode, and virtual user mode. You need to modify the vsftpd configuration to local mode. The configuration file of vsftpd is located in the/etc/directory named vsftpd. conf. Many experts have analyzed and explained the configuration file in detail on the Internet, and the comments in the file are also detailed. I will not explain it one by one here. The following describes only the locations to be modified:
Remove the # Before local_enable = yes to make it available, indicating that local users are allowed to log on;
Added the listen_port = 21 configuration item and set the listening port to 21;
This step is optional. Anonymous users are not allowed to log on. Change the value of anonymous_enable = yes to no and set it as needed.
Restart the vsftpd service: Service vsftpd restart. After the instance is started, log on to the local user Angel and its password during the test.
Note: The above test is performed on the local machine (or after logging on Using SSH.
2. Other machines cannot connect to the server
Symptom: After the local machine passes the test, use ftp 192.168.1.8 on another machine (Windows or RedHat) to connect to the server. The Connection closed by remote host or connection timed out prompt is displayed, and the connection fails.
Cause: The SuSE Firewall prevents external machines from accessing the port used by FTP.
Solution: Open the firewall's restrictions on ports 20 and 21 used by FTP. The steps are as follows:
I> YaST → security and users → firewall;
II> In the left-side Navigation Pane, select allowed services. In addition, even if the FTP server is installed, no FTP service is available in the servces to allow list, however, ssh, HTTP, https, Samba, and so on are all in the column, so use advanced settings. Click the Advanced button in the lower right corner to open the Advanced Settings dialog box;
III> enter 20 21 in TCP ports. Note that the two port numbers are separated by spaces. OK;
IV> next → accept

Restart, retest, and connect successfully. Use the angel and its password in the SuSE system to log on successfully.

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.