362
g. Click Open to connect to the server.
If the connection is successfully established, the system notifies you to enter the username.
After entering the username (client002), you can enter the CLI of the server.
Password authentication enabled Stelnet client configuration
example
Network requirements
As shown in Figure 104:
• You can log in to Switch B through the Stelnet client that runs on Switch A.
• After login, you are assigned the user role network-admin for configuration management.
• Switch B acts as the Stelnet server and uses password authentication.
• The username and password of the client are saved on Switch B.
Figure 104 Network diagram
Configuration procedure
1. Configure the Stelnet server:
# Generate RSA key pairs.
<SwitchB> system-view
[SwitchB] 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.
[SwitchB] 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.
Switch BSwitch A
Vlan-int2
192.168.1.56/24
Vlan-int2
192.168.1.40/24
Stelnet client Stelnet server