![Huawei Quidway NetEngine80 Скачать руководство пользователя страница 193](http://html.mh-extra.com/html/huawei/quidway-netengine80/quidway-netengine80_configuration-manual_169456193.webp)
9 Telnet and SSH
Quidway NetEngine80
Configuration Guide - Basic Configurations
9-32
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 04 (2009-12-20)
Configuration Procedure
Step 1
Generate a local key pair on the server.
<Quidway>
system-view
[Quidway]
rsa local-key-pair create
The key name will be: Quidway_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]:
Generating keys...
.......++++++++++++
..........++++++++++++
...................................++++++++
......++++++++
If the local key pair is generated before, this step can be ignored.
Step 2
Create an SSH user on the server.
The SSH client can be authenticated in four modes: password, RSA, password-RSA, and all.
z
If the password and password-RSA authentication is used, configure a local user of the same user
name.
z
If the RSA, password-RSA, and all authentication is used, the server must save the RSA public key
of the SSH client.
# Configure the VTY user interface.
[Quidway]
user-interface vty 0 4
[Quidway-ui-vty0-4]
authentication-mode aaa
[Quidway-ui-vty0-4]
protocol inbound ssh
[Quidway-ui-vty0-4]
quit
z
Create an SSH user Client001.
# Set the password authentication for the SSH user Client001.
[Quidway]
ssh user client001
[Quidway]
ssh user client001 authentication-type password
# Set the password of the SSH user Client001 to huawei.
[Quidway]
aaa
[Quidway-aaa]
local-user client001 password simple huawei
[Quidway-aaa]
local-user client001 service-type ssh
[Quidway-aaa]
quit
z
Create an SSH user Client002.
# Configure the RSA authentication for the SSH user Client002.
[Quidway]
ssh user client002
[Quidway]
ssh user client002 authentication-type rsa
Step 3
Configure the RSA public key on the server.
# Generate the RSA public key on the client software.