Publickey Authentication Enabled Stelnet Client Configuration Example - HP 12500 Series Configuration Manual

Routing
Table of Contents

Advertisement

[SwitchA-pkey-public-key] peer-public-key end
# Specify the host public key for the Stelnet server (192.168.1.40) as key1.
[SwitchA] ssh client authentication server 192.168.1.40 assign publickey key1
[SwitchA] quit
# Establish an SSH connection to the Stelnet server 192.168.1.40.
<SwitchA> ssh2 192.168.1.40
Username: client001
Trying 192.168.1.40
Press CTRL+K to abort
Connected to 192.168.1.40...
Enter password:
After you enter the correct password, you can log in to Switch B successfully.
Publickey authentication enabled Stelnet client configuration
example
Network requirements
As shown in
B acts as the Stelnet server and uses publickey authentication and the DSA public key algorithm.
Figure 80 Network diagram
Configuration procedure
In the server configuration, the client public key is required. Use the client software to generate a DSA key
pair on the client before configuring the Stelnet server.
Configure the Stelnet client:
1.
# Create VLAN-interface 2 and assign an IP address to it.
<SwitchA> system-view
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] ip address 192.168.1.56 255.255.255.0
[SwitchA-Vlan-interface2] quit
# Generate a DSA key pair.
[SwitchA] public-key local create dsa
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
It will take a few minutes.
Press CTRL+C to abort.
Input the bits of the modulus[default = 1024]:
Generating Keys...
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
# Export the DSA public key to file key.pub.
Figure
80, you can log in to Switch B through the Stelnet client that runs on Switch A. Switch
233

Advertisement

Table of Contents
loading

Table of Contents