HP 12500 Series Configuration Manual page 238

Routing
Table of Contents

Advertisement

Click Save private key to save the private key.
c.
A warning window pops up to prompt you whether to save the private key without any
protection.
Click Yes and enter the name of the file for saving the key (private.ppk in this case).
d.
Transmit the public key file to the server through FTP or TFTP. (Details not shown.)
e.
Configure the Stelnet server:
2.
# Generate the RSA key pairs.
<Switch> system-view
[Switch] public-key local create rsa
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...
++++++++
++++++++++++++
+++++
++++++++
# Generate a DSA key pair.
[Switch] 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...
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
# Enable the SSH server function.
[Switch] ssh server enable
# Configure an IP address for VLAN-interface 2, which the Stelnet client will use as the destination
address of the SSH connection.
[Switch] interface vlan-interface 2
[Switch-Vlan-interface2] ip address 192.168.1.40 255.255.255.0
[Switch-Vlan-interface2] quit
# Set the authentication mode for the user interface to AAA.
[Switch] user-interface vty 0 4
[Switch-ui-vty0-4] authentication-mode scheme
# Enable the user interface to support SSH.
[Switch-ui-vty0-4] protocol inbound ssh
# Set the user command privilege level to 3.
[Switch-ui-vty0-4] user privilege level 3
[Switch-ui-vty0-4] quit
# Import the client's public key from file key.pub and name it SwitchKey.
[Switch] public-key peer SwitchKey import sshkey key.pub
228

Advertisement

Table of Contents
loading

Table of Contents