![Huawei AR2200 Series Configuration Manual Download Page 80](http://html.mh-extra.com/html/huawei/ar2200-series/ar2200-series_configuration-manual_169296080.webp)
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.
6.
Run:
peer-public-key end
Return to the system view from the public key view.
7.
Run:
ssh user
user-name
assign
rsa-key
key-name
The public key is assigned to the SSH user.
Step 7
(Optional) Configuring the Basic Authentication Information for SSH Users
1.
Run:
ssh server rekey-interval
interval
The interval for updating the server key pair is configured.
By default, the interval for updating the key pair of the SSH server is 0 that indicates no
updating.
2.
Run:
ssh server auth-timeout
timeout_interval
The timeout period of the SSH authentication is set.
By default, the timeout period is 60 seconds.
3.
Run:
ssh server authentication-retries
auth-times
The number of retry times of the SSH authentication is set.
By default, the retry times is 3.
----End
5.4.5 Enabling the STelnet Server Function
To allow users to log in to the router by using STelnet, you must enable the STelnet server
function on the router.
Context
By default, no router is enabled with the STelnet server function. Users can establish connections
to the router by using STelnet only after the router is enabled with the STelnet server function.
Do as follows on the router that serves as an SSH server:
Procedure
Step 1
Run:
system-view
Huawei AR2200 Series Enterprise Routers
Configuration Guide - Basic Configuration
5 Configuring User Login
Issue 02 (2011-10-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
69