HP 6125G Configuration Manual page 209

Security configuration guide
Hide thumbs Also See for 6125G:
Table of Contents

Advertisement

[SwitchA] public-key local export dsa ssh2 key.pub
[SwitchA] quit
Then, transmit the public key file to the server through FTP or TFTP.
Configure the SSH server:
2.
# Generate the RSA key pairs.
<SwitchB> system-view
[SwitchB] 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.
[SwitchB] 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.
[SwitchB] ssh server enable
# Configure an IP address for VLAN-interface 1, which the SSH client will use as the destination for
SSH connection.
[SwitchB] interface vlan-interface 1
[SwitchB-Vlan-interface1] ip address 10.165.87.136 255.255.255.0
[SwitchB-Vlan-interface1] quit
# Set the authentication mode for the user interfaces to AAA.
[SwitchB] user-interface vty 0 7
[SwitchB-ui-vty0-7] authentication-mode scheme
# Enable the user interfaces to support SSH.
[SwitchB-ui-vty0-7] protocol inbound ssh
# Set the user command privilege level to 3.
[SwitchB-ui-vty0-7] user privilege level 3
[SwitchB-ui-vty0-7] quit
# Import the peer public key from the file key.pub.
[SwitchB] public-key peer Switch001 import sshkey key.pub
# Specify the authentication method for user client002 as publickey, and assign the public key
Switch001 to the user.
199

Advertisement

Table of Contents
loading

This manual is also suitable for:

6125 blade switch series

Table of Contents