user
Function
The user command changes the current FTP user when the local device is connected to the FTP server.
Parameters
Parameter | Description | Value |
---|---|---|
user-name | Specifies the login password. | The value is a string of 1 to 64 case-insensitive characters without space. |
password | Specifies the login password. | The value is a string of 1 to 16 case-sensitive characters without space, single quotation mark, or question mark. |
Usage Guidelines
Usage Scenario
You can run the user command to change the current user on the FTP server.
Precautions
After you run the user command to change the current user, a new FTP connection is set up, which is the same as that you specify in the ftp command.
Example
# Log in to the FTP server using the user name tom.
<AC6605> ftp 10.137.217.201 Trying 10.137.217.201 ... Press CTRL+K to abort Connected to 10.137.217.201. 220 FTP service ready. User(10.137.217.201:(none)):huawei 331 Password required for huawei. Enter password: 230 User logged in.
[AC6605-ftp] user tom
331 Password required for tom.
Enter password:
230 User logged in.