1-3
To do… Use the command… Remarks
Enter system view
system-view
—
Add a local user and enter local
user view
local-user user-name
Required
By default, no local user is
configured.
Configure a password for the
specified user
password { simple | cipher }
password
Optional
By default, no password is
configured.
Configure the service type as
FTP
service-type ftp
Required
By default, no service is
configured.
Enabling an FTP server
Follow these steps to enable an FTP server:
To do… Use the command… Remarks
Enter system view
system-view
—
Enable the FTP server function
ftp server enable
Required
Disabled by default.
z Only one user can access an H3C S5100-SI/EI series Ethernet switch at a given time when the
latter operates as an FTP server.
z Operating as an FTP server, an H3C S5100-SI/EI series Ethernet switch cannot receive a file
whose size exceeds its storage space. The clients that attempt to upload such a file will be
disconnected with the FTP server due to lack of storage space on the FTP server.
To protect unused sockets against attacks, the S5100-SI/EI Ethernet switch provides the following
functions:
z TCP 21 is enabled only when you start the FTP server.
z TCP 21 is disabled when you shut down the FTP server.
Configuring connection idle time
After the idle time is configured, if the server does not receive service requests from a client within a
specified time period, it terminates the connection with the client, thus preventing a user from occupying
the connection for a long time without performing any operation.