![Huawei AR2200 Series Скачать руководство пользователя страница 147](http://html.mh-extra.com/html/huawei/ar2200-series/ar2200-series_configuration-manual_169296147.webp)
Procedure
Step 1
Run:
system-view
The system view is displayed.
Step 2
Run:
rsa peer-public-key
key-name
The public key view is displayed.
Step 3
Run:
public-key-code begin
The public key editing view is displayed.
Step 4
Run:
hex-data
The public key is edited.
The public key must be a string of hexadecimal alphanumeric characters. It is automatically
generated by an SSH client. You can run the
display rsa local-key-pair public
command to
view a generated public key.
NOTE
Before being assigned to the SSH server, the assigned peer RSA public key must be obtained from the SSH
server and must be configured on the SSH client. Then, the STelnet client client can successfully undergo
the validity check on the RSA public key of the SSH server.
Step 5
Run:
public-key-code end
Quit the public key editing view.
l
If the specified
hex-data
is invalid, the public key cannot be generated after the
peer-public-
key end
command is run.
l
If the specified
key-name
is deleted in other views, the system prompts that the key does not
exist after the
peer-public-key end
command is run and the system view is displayed.
Step 6
Run:
peer-public-key end
Return to the system view from the public key view.
----End
8.4.4 Logging in to Another Device by Using STelnet
You can log in to the SSH server from the SSH client by using STelnet.
Context
When accessing an SSH server, the STelnet client can carry the source address and the VPN
instance name and choose the key exchange algorithm, encryption algorithm, or HMAC
algorithm, and configure the keepalive function.
Huawei AR2200 Series Enterprise Routers
Configuration Guide - Basic Configuration
8 Accessing Another Device
Issue 02 (2011-10-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
136