40
Parameters
None
Description
Use the
ftp server enable
command to enable the FTP server and allow the login of FTP
users.
Use the
undo ftp server
command to disable the FTP server.
By default, the FTP server is disabled to prevent attacks.
Examples
Enable the FTP server.
<Sysname> system-view
[Sysname] ftp server enable
ftp timeout
Syntax
ftp timeout
minute
undo ftp timeout
View
System view
Default Level
3: Manage level
Parameters
minute
: Idle-timeout timer in minutes, in the range 1 to 35791.
Description
Use the
ftp timeout
command to set the idle-timeout timer.
Use the
undo ftp timeout
command to restore the default.
By default, the FTP idle time is 30 minutes.
After you log in to an FTP server, if the connection is disrupted and the FTP server is not
notified, the system will maintain the connection. This causes the occupation of the
system resources and affects the log in of other FTP users. To address this problem, set
an idle-timeout timer so that the FTP server can disconnect from the user if no
information is received or/and transmitted before the timer expires.
Examples
Set the idle-timeout timer to 36 minutes.