![H3C S5120-SI Series Operation Manual Download Page 471](http://html2.mh-extra.com/html/h3c/s5120-si-series/s5120-si-series_operation-manual_3711174471.webp)
2-3
To do…
Use the command…
Remarks
Establish a
connection to the
remote SFTP server
and enter SFTP client
view
sftp
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
Use either command in
user view.
Working with the SFTP Directories
SFTP directory operations include:
z
Changing or displaying the current working directory
z
Displaying files under a specified directory or the directory information
z
Changing the name of a specified directory on the server
z
Creating or deleting a directory
Follow these steps to work with the SFTP directories:
To do…
Use the command…
Remarks
Enter SFTP client view
sftp
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.
Change the working directory
of the remote SFTP server
cd
[
remote-path
]
Optional
Return to the upper-level
directory
cdup
Optional
Display the current working
directory of the remote SFTP
server
pwd
Optional
dir
[
-a
|
-l
] [
remote-path
]
Display files under a specified
directory
ls
[
-a
|
-l
] [
remote-path
]
Optional
The
dir
command functions as
the
ls
command.
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