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
Follow these steps to work with SFTP files:
To do...
Enter SFTP client view
Change the name of a specified file
or directory on the SFTP server
Download a file from the remote
server and save it locally
Upload a local file to the remote
SFTP server
Display the files under a specified
directory
Delete a file from the SFTP server
Displaying Help Information
This configuration task is to display a list of all commands or the help information of an SFTP client
command, such as the command format and parameters.
Follow these steps to display a list of all commands or the help information of an SFTP client command:
To do...
Enter SFTP client view
Display a list of all commands or
the help information of an SFTP
client command
Use the command...
sftp [ ipv6 ] server [ port-number ]
[ identity-key { dsa | rsa } |
prefer-ctos-cipher { aes128 | des } |
prefer-ctos-hmac { md5 | md5-96 |
sha1 | sha1-96 } | prefer-kex
{ dh-group-exchange | dh-group1 |
dh-group14 } | prefer-stoc-cipher
{ aes128 | des } | prefer-stoc-hmac
{ md5 | md5-96 | sha1 | sha1-96 } ] *
rename old-name new-name
get remote-file [ local-file ]
put local-file [ remote-file ]
dir [ -a | -l ] [ remote-path ]
ls [ -a | -l ] [ remote-path ]
delete remote-file&<1-10>
remove remote-file&<1-10>
Use the command...
sftp [ ipv6 ] server [ port-number ] [ identity-key
{ dsa | rsa } | prefer-ctos-cipher { aes128 | des } |
prefer-ctos-hmac { md5 | md5-96 | sha1 |
sha1-96 } | prefer-kex { dh-group-exchange |
dh-group1 | dh-group14 } | prefer-stoc-cipher
{ aes128 | des } | prefer-stoc-hmac { md5 |
md5-96 | sha1 | sha1-96 } ] *
help [ all | command-name ]
2-4
Remarks
Required
Execute the command in user
view.
Optional
Optional
Optional
Optional
The dir command functions
as the ls command.
Optional
The delete command
functions as the remove
command.
Remarks
Required
Execute the
command in user
view.
Required