![Huawei Quidway NetEngine80 Configuration Manual Download Page 206](http://html.mh-extra.com/html/huawei/quidway-netengine80/quidway-netengine80_configuration-manual_169456206.webp)
Quidway NetEngine80
Configuration Guide - Basic Configurations
9 Telnet and SSH
Issue 04 (2009-12-20)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
9-45
BC89D3DB 5A83698C 9063DB39 A279DD89
0203
010001
[client]
# Send the RSA public key generated on the client to the server.
[Quidway]
rsa peer-public-key RsaKey001
Enter "RSA public key" view, return system view with "peer-public-key end".
[Quidway-rsa-public-key]
public-key-code begin
Enter "RSA key code" view, return last view with "public-key-code end".
[Quidway-rsa-key-code]
3047
[Quidway-rsa-key-code]
0240
[Quidway-rsa-key-code]
BFF35E4B C61BD786 F907B5DE 7D6770C3 E5FD17AB
[Quidway-rsa-key-code]
203C8FCB BBC8FDF2 F7CB674E 519E8419 0F6B97A8
[Quidway-rsa-key-code]
EA91FC4B B9E18836 5E74BFD5 4C687767 A89C6B43
[Quidway-rsa-key-code]
1D7E3E1B
[Quidway-rsa-key-code]
0203
[Quidway-rsa-key-code]
010001
[Quidway-rsa-key-code]
public-key-code end
[Quidway-rsa-public-key]
peer-public-key end
Step 3
Create an SSH user on the server.
The SSH user has four authentication modes, namely, password, RSA, password-rsa, and all.
z
When the SSH adopts the password or password-rsa authentication, it requires you to configure a
local user with the same name.
z
When the SSH user adopts the RSA, password-rsa, or all authentication, the server should save the
RSA public key for 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 Client001 for the SSH user.
# Create an SSH user with the name Client001. The authentication mode is password.
[Quidway]
ssh user client001
[Quidway]
ssh user client001 authentication-type password
# Set huawei as the password for the Client001 of the SSH user.
[Quidway]
aaa
[Quidway-aaa]
local-user client001 password simple huawei
[Quidway-aaa]
local-user client001 service-type ssh
[Quidway-aaa]
quit
# Configure service type of Client001 as STelnet.
[Quidway]
ssh user client001 service-type stelnet
z
Create an SSH user with the name of Client002 and RSA authentication, bound to RSA
public key of the SSH client.
[Quidway]
ssh user client002
[Quidway]
ssh user client002 authentication-type rsa