![Huawei AR2200 Series Скачать руководство пользователя страница 121](http://html.mh-extra.com/html/huawei/ar2200-series/ar2200-series_configuration-manual_169296121.webp)
Data Preparation
To complete the configuration, you need the following data:
l
SSH user authentication mode: password, user name: client001, password: huawei
l
User level of client001: 3
l
IP address of the SSH server: 10.137.217.225
Procedure
Step 1
Configure a local key pair on the SSH server.
<Huawei>
system-view
[Huawei]
sysname SSH Server
[SSH Server]
rsa local-key-pair create
The key name will be: Host
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
It will take a few minutes.
Input the bits in the modulus[default = 512]:
768
Generating keys...
.......++++++++++++
..........++++++++++++
...................................++++++++
......++++++++
Step 2
Configure VTY user interfaces on the SSH server.
[SSH Server]
user-interface vty 0 4
[SSH Server-ui-vty0-4]
authentication-mode aaa
[SSH Server-ui-vty0-4]
protocol inbound ssh
[SSH Server-ui-vty0-4]
quit
Step 3
Configure the SSH user name and password on the SSH server.
[SSH Server]
aaa
[SSH Server-aaa]
local-user client001 password cipher huawei
[SSH Server-aaa]
local-user client001 privilege level 3
[SSH Server-aaa]
local-user client001 service-type ssh
[SSH Server-aaa]
local-user client001 ftp-directory flash:
[SSH Server-aaa]
quit
Step 4
Enable SFTP.
[SSH Server]
sftp server enable
Step 5
Verify the configurations.
# Access the SFTP server by using the OpenSSH software.
Huawei AR2200 Series Enterprise Routers
Configuration Guide - Basic Configuration
6 Managing File System
Issue 02 (2011-10-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
110