•
When the device acts as an Stelnet server, only RSA key pairs are supported. Do not generate
a DSA key pair on the Stelnet server.
Password authentication enabled Stelnet server
configuration example
Network requirements
As shown in
•
The router acts as the Stelnet server and uses password authentication.
•
The username and password of the client are saved on the router.
Establish a connection between the host and the router, so you can log in to the router to manage
configurations.
Figure 116 Network diagram
Configuration procedure
1.
Configure the Stelnet server:
# Generate RSA key pairs.
<Router> system-view
[Router] public-key local create rsa
The range of public key size is (512 ~ 2048).
If the key modulus is greater than 512, it will take a few minutes.
Press CTRL+C to abort.
Input the modulus length [default = 1024]:
Generating Keys...
........................++++++
...................++++++
..++++++++
............++++++++
Create the key pair successfully.
# Generate a DSA key pair.
[Router] public-key local create dsa
The range of public key size is (512 ~ 2048).
If the key modulus is greater than 512, it will take a few minutes.
Press CTRL+C to abort.
Input the modulus length [default = 1024]:
Generating Keys...
.++++++++++++++++++++++++++++++++++++++++++++++++++*
........+......+.....+......................................+
...+.................+..........+...+.
Create the key pair successfully.
# Enable the Stelnet server.
[Router] ssh server enable
Figure
116:
409