
Quidway NetEngine20/20E
Configuration Guide - Basic Configurations
9 Telnet and SSH
Issue 05 (2010-01-30)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
9-23
z
Run:
mkdir
remote-directory
A directory is created on the server.
----End
After the SFTP client logs in to the SSH server, you can create and delete the directory on the SSH
server, display the current operating directory and the file or information of the specified directory on
the SFTP client side.
9.6.6 Managing the File
Do as follows on the login router:
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
sftp
{ [
-a
X.X.X.X ]
host-ipv4
|
ipv6
[
-a
X:X::X:X ]
host-ipv6
[
-i
{
interface-type
interface-number
|
interface-name
} ] }
[
port
] [
prefer-kex
{
dh-group1
|
dh-exchange-group
} ] [
prefer-ctos-cipher
{
des
|
3des
|
aes128
}
]
[
prefer-stoc-cipher
{
des
|
3des
|
aes128
} ]
[
prefer-ctos-hmac
{
sha1
|
sha1-96
|
md5
|
md5-96
} ]
[
prefer-stoc-hmac
{
sha1
|
sha1-96
|
md5
|
md5-96
} ] [ -
vpn-instance
vpn-instance-name
]
The SFTP client view is displayed.
Step 3
Perform the following as required:
z
Run:
rename
old-name new-name
The name of the specified file on the server is changed.
z
Run:
get
remote-file
[
local-file
]
The file on the remote server is downloaded.
z
Run:
put
local-file
[
remote-file
]
The local file is uploaded to the remote server.
z
Run:
delete/remove
remote-file
The file on the server is deleted.
----End
After the SFTP client logs in to the SSH server, you can change the file name, delete the file, display the
file list, upload and download the file on the SFTP client side.
9.6.7 Displaying the SFTP Client Command Help