![H3C S9500E Series Security Configuration Manual Download Page 146](http://html1.mh-extra.com/html/h3c/s9500e-series/s9500e-series_security-configuration-manual_3156952146.webp)
146
To do…
Use the command…
Remarks
7.
Create a new directory on the
remote SFTP server
mkdir
remote-path
Optional
8.
Delete a directory from the
SFTP server
rmdir
remote-path
&<1-10>
Optional
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…
Use the command…
Remarks
1.
Enter SFTP client view
sftp
[
ipv6
]
server
[
port-number
]
[
identity-key
{
dsa
|
rsa
} |
prefer-ctos-cipher
{
3des
|
aes128
|
des
} |
prefer-ctos-
hmac
{
md5
|
md5-96
|
sha1
|
sha1-96
} |
prefer-kex
{
dh-
group-exchange
|
dh-
group1
|
dh-group14
} |
prefer-stoc-cipher
{
3des
|
aes128
|
des
} |
prefer-stoc-
hmac
{
md5
|
md5-96
|
sha1
|
sha1-96
} ] *
Required
Execute the command in user view.
2.
Change the name of a
specified file or directory 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
]
Optional
The
dir
command functions as the
ls
command.
ls
[
-a
|
-l
] [
remote-path
]
6.
Delete a file from the SFTP
server
delete
remote-file
&<1-10>
Optional
The
delete
command functions as
the
remove
command.
remove
remote-file
&<1-10>