The open command sets up a control connection with the remote FTP server. The VPN instance name specified in the command indicates the FTP server with which you set up the FTP connection.
open [ ssl-policy policy-name ] [ -a source-ip-address | -i interface-type interface-number ] host [ port-number ] [ public-net | vpn-instance vpn-instance-name ]
| Parameter | Description | Value |
|---|---|---|
ssl-policy policy-name |
Specifies the name of the ssl policy. |
The value must be the name of an existing ssl policy. |
-a source-ip-address |
Specifies the source IP address. |
- |
-i interface-type interface-number |
Specifies the local source interface that connects to the remote FTP server. |
- |
host |
Specifies the IP address or host name of the remote FTP server. |
- |
port-number |
Specifies the port number of the remote FTP server. |
The value can be 21 or any integer that ranges from 1025 to 55535. By default, the port number is 21. |
public-net |
Indicates connection over the public network. |
- |
vpn-instance vpn-instance-name |
Specifies the name of the VPN instance. |
The value is a string of 1 to 31 characters. |
Using the ftp command in the user view, you can establish a connection with the FTP server and enter the FTP client view. When the FTP disconnects accidentally, you can run this command to create an FTP connection.
By default, the port number is 21.
# Set up a connection with FTP server 10.10.10.1.
<sysname> ftp 10.10.10.1 Trying 10.10.10.1... Press CTRL+K to abort Connected to 10.10.10.1. 220 FTP service ready. User(10.10.10.1:(none)):ftpuser 331 Password required for ftpuser Enter Password: 230 User logged in. [ftp] open 10.10.10.1 Warning:Already connected to 10.10.10.1, use disconnect first. [ftp] disconnect 221 Server closing. [ftp] open 10.10.10.1 Trying 10.10.10.1... Press CTRL+K to abort Connected to 10.10.10.1. 220 FTP service ready. User(10.10.10.1:(none)):ftpuser 331 Password required for ftpuser Enter Password: 230 User logged in. [ftp]