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.


Fat AP and Cloud AP V200R010C00 Command Reference

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).
ftp server port

ftp server port


The ftp server port command specifies the listening port number of the FTP server.

The default value is 21.


ftp server port port-number


Parameter Description Value
port port-number Specifies the listening port number of the FTP server. The value is 21 or an integer that ranges from 1025 to 55535


System view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

By default, the listening port number of the FTP server is 21. Attackers may frequently access the default listening port, which wastes bandwidth, deteriorates server performance, and prevents authorized users from accessing the FTP server through the listening port. You can run the ftp server port command to specify another listening port number to prevent attackers from accessing the listening port.


Before running the ftp server port command to specify the listening port number, you must first run the undo ftp server command to disable FTP services.


  • After the ftp server port command is executed, the FTP server disconnects all FTP connections and uses the new listening port.

  • If the current listening port number is 21, FTP client users do not need to specify the port number for logging in to the FTP server. If the current listening port number is not 21, FTP client users must use the FTP server's listening port number to log in to the FTP server.

  • After the listening port number is changed, you must run the ftp server enable command to enable FTP services to make the configuration take effect.


# Change the port number of the FTP server to 1028.
<Huawei> system-view
[Huawei] undo ftp server
[Huawei] ftp server port 1028
Related Topics
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 248228

Downloads: 140

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Previous Next