9 Telnet and SSH
Quidway NetEngine20/20E
Configuration Guide - Basic Configurations
9-40
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
Issue 05 (2010-01-30)
010001
[client]
# Send the RSA public key generated on the client software 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 6
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.
# Configure 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
# Set the service type of Client001 to STelnet.
[Quidway]
ssh user client001 service-type stelnet
z
Create an SSH user Client002 set the authentication mode to RSA, and bind Client002 to
the RSA public key of the SSH client.
[Quidway]
ssh user client002
[Quidway]
ssh user client002 authentication-type rsa
[Quidway]
ssh user client002 assign rsa-key RsaKey001