Connected to 192.168.40.7 (192.168.40.7).
220 FTP service ready.
User (192.168.40.7:(none)): root
331 Password required for root.
Password:
230 User logged in.
Remote system type is HP.
ftp>
passive
Use passive to set the FTP operation mode to passive.
Syntax
passive
Default
The FTP operation mode is passive.
Views
FTP client view
Predefined user roles
network-admin
Usage guidelines
FTP can operate in either of the following modes:
Active mode—The FTP server initiates the TCP connection.
•
Passive mode—The FTP client initiates the TCP connection.
•
You can use this command multiple times to change between active and passive modes.
This command is mainly used together with a firewall to control FTP session establishment between
private network users and public network users.
Examples
# Set the FTP operation mode to passive.
ftp> passive
Passive mode on.
ftp> passive
Passive mode off.
put
Use put to upload a file on the client to the remote FTP server.
Syntax
put localfile [ remotefile ]
Views
FTP client view
115