R3721-F3210-F3171-HP High-End Firewalls System Management and Maintenance Configuration Guide-6PW101
171
Working with SFTP files
SFTP file operations include:
• Changing the name of a file
• Downloading a file
• Uploading a file
• Displaying a list of the files
• Deleting a file
To work with SFTP files:
Ste
p
Command
Remarks
1. Enter SFTP client view.
For more information, see
"Establishing a connection to the
SFTP server."
Execute the command in user view.
2. Change the name of a
specified file on the SFTP
server.
rename old-name new-name Optional.
3. Download a file from the
remote server and save it
locally.
get remote-file [ local-file ] Optional.
4. Upload a local file to the
remote SFTP server.
put local-file [ remote-file ] Optional.
5. Display the files under a
specified directory.
• dir [ -a | -l ] [ remote-path ]
• ls [ -a | -l ] [ remote-path ]
Optional.
The dir command functions as the
ls command.
6. Delete one or more directories
from the SFTP server.
• delete remote-file&<1-10>
• remove remote-file&<1-10>
Optional.
The delete command functions as
the remove command.
Displaying help information
This configuration task will display a list of all commands or the help information of an SFTP client
command, such as the command format and parameters.
To display a list of all commands or the help information of an SFTP client command:
Ste
p
Command
Remarks
1. Enter SFTP client view.
For more information, see
"Establishing a connection to the
SFTP server."
Execute the command in user view.
2. Display a list of all commands
or the help information of an
SFTP client command.
help [ all | command-name ] N/A