Files must be transferred in Secure File Transfer Protocol (SFTP) mode to ensure file transfer reliability. File Transfer Protocol (FTP) ports of devices must be disabled to ensure device security and prevent unauthorized users from attacking devices using FTP ports.
The configuration roadmap is as follows:
None
<HUAWEI> display tcp status ---------------------------------------------------------------------------- Cid/SocketID Local Addr:Port Foreign Addr:Port VPNID State ---------------------------------------------------------------------------- 0x80932724/131216 0.0.0.0:22 0.0.0.0:0 1 LISTEN 0x80C8272A/131218 0.0.0.0:23 0.0.0.0:0 1 LISTEN 0x80952725/131219 0.0.0.0:21 0.0.0.0:0 1 LISTEN
The command output shows that the FTP port is enabled.
The FTP server may listen to another port. You can run the following command to view the port number listened by the FTP server.
<HUAWEI> display ftp-server Server state : disabled IPv6 server state : disabled Timeout value (mins) : 30 IPv6 Timeout value (mins): 30 Listen port : 21 IPv6 listen port : 21 ACL name : IPv6 ACL name : ACL number : IPv6 ACL number : Current user count : 0 Max user number : 15
<HUAWEI> system-view [~HUAWEI] undo ftp server Warning: The operation will stop the FTP server. Do you want to continue? [Y/N]:y Info: Succeeded in closing the FTP server. [*HUAWEI] commit
<HUAWEI> display tcp status ---------------------------------------------------------------------------- Cid/SocketID Local Addr:Port Foreign Addr:Port VPNID State ---------------------------------------------------------------------------- 0x80932724/131216 0.0.0.0:22 0.0.0.0:0 1 LISTEN 0x80C8272A/131218 0.0.0.0:23 0.0.0.0:0 1 LISTEN
The command output shows that the FTP port is disabled.