Configuration Guide FTP Server Configuration
port data connect : Y
ftp-server: ip=192.167.201.245 port=22
ftp-client: ip=192.167.201.82 port=4982
passive data connect : N
The following example turns on the debugging of the FTP Server:
Ruijie# debug ftpserver
FTPSRV_DEBUG:(RECV) SYST
FTPSRV_DEBUG:(REPLY) 215 RGOS Type: L8
FTPSRV_DEBUG:(RECV) PORT 192,167,201,82,7,120
FTPSRV_DEBUG:(REPLY) 200 PORT Command okay.
The following example turns off the debugging of the FTP Server:
Ruijie# no debug ftpserver
Configuration Example
Below shows how to configure the FTP Server:
Step 1: Set the user name to “admin” and the password to “letmein”.
Ruijie(config)# ftp-server username admin
Ruijie(config)# ftp-server password letmein
Step 2: Set the session idle timeout to 5 minutes.
Ruijie(config)# ftp-server timeout 5
Step 3: Set the top directory to “/syslog”.
Ruijie(config)# ftp-server topdir /syslog
Step 4: Enable the FTP Server.
Ruijie(config)# ftp-server enable