9 Telnet and SSH
Quidway NetEngine20/20E
Configuration Guide - Basic Configurations
9-22
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 05 (2010-01-30)
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 SSH server is logged in to through SFTP.
----End
The command of enabling the SFTP client is similar to that of the STelnet. When accessing the SSH
server, the SFTP can carry the source address and the name of the VPN instance and choose the key
exchange algorithm, encrypted algorithm and HMAC algorithm.
9.6.5 Managing the Directory
Do as follows on the router that serves as the SSH client:
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:
cd
remote-directory
The current operating directory of users is changed.
z
Run:
cdup
The operating directory of users is switched to the upper-level directory.
z
Run:
pwd
The current operating directory of users is displayed.
z
Run:
dir/ls
[
remote-directory
]
The file list in the specified directory is displayed.
z
Run:
rmdir
remote-directory
The directory on the server is deleted.