No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


HUAWEI CLOUD Stack 6.5.0 Backup and Restoration Guide 03

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Preparing the FTP Server

Preparing the FTP Server


This section describes how to connect the maintenance terminal to the FTP server and perform configurations to prepare for interconnection between the FTP server and cloud services.


  • The maintenance terminal has been connected to the FTP server through the management network port.
  • The vsftpd software package has been obtained.
  • The IP address of the FTP server has been obtained.


This document uses PuTTY 0.67 as an example.

Operation Procedure

  1. Run PuTTY.

    The PuTTY Configuration dialog box is displayed, as shown in Figure 3-3.

    Figure 3-3 PuTTY Configuration

  2. Configure the CLI to support display of Chinese characters.

    1. In the navigation tree, choose Window > Translation.
    2. Change Remote character set: to UTF-8, as shown in Figure 3-4.
      Figure 3-4 Configuring support for Chinese characters

    3. In the navigation tree, choose Window > Appearance.
    4. In the Font settings area, click Change.

      The Font dialog box is displayed.

    5. In the dialog box that is displayed, select the Chinese character properties (including the font, font style, and size), and click OK.

      The PuTTY Configuration dialog box is displayed.

    6. In the navigation tree on the left, choose Session.
    7. In the Load, save or delete a stored session area, select Default Settings and click Save to save the settings as the default.

  3. Select Session. In the Specify the destination you want to connect to area, enter the IP address of the FTP server's management network port that connects to the maintenance terminal in Host Name (or IP address) and set Connection type to SSH.
  4. Click Open. The CLI login page is displayed as follows:

    login as:

  5. Enter the username and password of the FTP server as prompted. If the login is successful, the following message is displayed:

    Last login: Mon Apr 10 10:38:06 2017 from XXX.XXX.XXX.XXX 
    [root@localhost ~]# 

  6. Run the rpm -qa| grep vsftpd command to check whether vsftpd has been installed on the server.

    • If yes, go to 7.a.
    • If vsftpd has not been installed, run the yum -y install vsftpd command to install vsftpd. After the installation is complete, repeat Step 6.

  7. Add an FTP user and set permissions.


    You can customize the username. The following uses creating a test user as an example.

    1. Run the following command to add the test user and create the /home/test directory for the user:

      useradd -d /home/test test

    2. Run the following command to set a password for the test user:

      passwd test

    3. Run the following command to specify that the test user cannot use Telnet and can only use FTP:

      usermod -s /sbin/nologin test

  8. Modify the vsftpd.conf file.

    1. Run the vi /ect/vsftpd.conf command to open the vsftpd.conf file.
    2. Press i to enter editing mode and set the following parameters:
    • anonymous_enable: To prevent anonymous users from logging in to the system, set this parameter to NO.
    • connect_from_port_20: To transmit data through port 20, set this parameter to YES.
    • write_enable: To allow the FTP user to write data, set this parameter to YES.
    • chroot_list_enable: To restrict access to its own directory, set this parameter to YES.
    • local_enable: Set this parameter to YES.

  9. Press Esc to exit editing mode.

    Enter :wq and press Enter to save the configuration and exit.

  10. Run the following command to restart the vsftpd service:

    service vsftpd restart

  11. Run the ftp IP address of the FTP server command to check whether the login is successful.

    • If yes, no further action is required.
    • If no, repeat steps Step 1 to Step 10. If the login still fails, contact technical support engineers.

Updated: 2019-06-14

Document ID: EDOC1100062366

Views: 785

Downloads: 9

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Previous Next