3Com Switch 8800 Advanced Software V5 Configuration Guide
968 CHAPTER 73: SFTP SERVICE
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:
Display the current working
directory of the remote SFTP
server
pwd Optional
Display files under a specified
directory
dir [ -a | -l ] [ remote-path ] Optional
The dir command functions
the same as the ls command.
ls [ -a | -l ] [ remote-path ]
Change the name of a
specified directory on the SFTP
server
rename oldname newname Optional
Create a new directory on the
remote SFTP server
mkdir remote-path Optional
Delete a directory from the
SFTP server
rmdir remote-path&<1-10> Optional
To do... Use the command... Remarks
To do... Use the command... Remarks
Enter system view system-view -
Establish a connection to the
remote SFTP server, and enter
SFTP Client view
sftp { host-ip | host-name } [
port-number ] [ prefer_kex {
dh_group1 |
dh_exchange_group } |
prefer_ctos_cipher { des |
aes128 | 3des } |
prefer_stoc_cipher { des |
aes128 | 3des } |
prefer_ctos_hmac { sha1 |
sha1_96 | md5 | md5_96 } |
prefer_stoc_hmac { sha1 |
sha1_96 | md5 | md5_96 } ]*
Required
Change the name of a
specified file on the SFTP
server
rename old-name new-name Optional
Download a file from the
remote server and save it
locally
get remote-file [ local-file ] Optional
Upload a local file to the
remote SFTP server
put local-file [ remote-file ] Optional
Display the files under a
specified directory
dir [ -a | -l ] [ remote-path ] Optional
The dir command functions
the same as the ls command.
ls [ -a | -l ] [ remote-path ]