Using another username to log in to the ftp server, Maintaining and troubleshooting the ftp connection – H3C Technologies H3C SecPath F1000-E User Manual

Page 216

Advertising
background image

205

Task Command

Remarks

Display detailed information
about a directory or file on the

remote FTP server.

dir [ remotefile [ localfile ] ]

The ls command displays the name of a
directory or file only, while the dir
command displays detailed information

such as the file size and creation time.

Query a directory or file on the
remote FTP server.

ls [ remotefile [ localfile ] ]

The ls command displays the name of a
directory or file only, while the dir

command displays detailed information
such as the file size and creation time.

Delete the specified file on the

remote FTP server permanently. delete remotefile

N/A

Set the file transfer mode to
ASCII.

ascii

ASCII by default.

Set the file transfer mode to
binary.

binary

ASCII by default.

Set the data transmission mode
to passive.

passive

Passive by default.

Display the local working
directory of the FTP client.

lcd

N/A

Upload a file to the FTP server. put localfile [ remotefile ]

N/A

Download a file from the FTP
server.

get remotefile [ localfile ]

N/A

Using another username to log in to the FTP server

After the firewall serving as the FTP client has established a connection with the FTP server, you can use

another username to log in to the FTP server. For more information about establishing an FTP connection,

see "

Establishing an FTP connection

."

This feature allows you to switch to different user levels without affecting the current FTP connection; if you
enter an incorrect username or password, the current connection will be terminated, and you must log in

again to access the FTP server.
To use another username to log in to the FTP server:

Task Command

Use another username to re-log in after successfully
logging in to the FTP server.

user username [ password ]

Maintaining and troubleshooting the FTP connection

Task Command

Remarks

Display the help information of
FTP-related commands supported by the
remote FTP server.

remotehelp [ protocol-command ]

N/A

Advertising