beautypg.com

H3C Technologies H3C SecBlade LB Cards User Manual

Page 187

background image

176

d.

Click Save private key to save the private key.
A confirmation dialog box appears.

e.

Click Yes and enter the name of the file for saving the key (private.ppk in this example).

f.

Transmit the public key file to the server through FTP or TFTP. (Details not shown.)

2.

Configure the Stelnet server:
# Generate the RSA key pairs.

system-view

[LB] 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...

++++++++

++++++++++++++

+++++

++++++++

# Enable the SSH server function.

[LB] ssh server enable

# Configure an IP address for interface GigabitEthernet 0/1. The Stelnet client uses this IP address

as the destination for SSH connection.

[LB] interface gigabitethernet 0/1

[LB-GigabitEthernet0/1] ip address 192.168.1.40 255.255.255.0

[LB-GigabitEthernet0/1] quit

# Set the authentication mode for the user interface to AAA.

[LB] user-interface vty 0 4

[LB-ui-vty0-4] authentication-mode scheme

# Enable the user interface to support SSH.

[LB-ui-vty0-4] protocol inbound ssh

[LB-ui-vty0-4] quit

# Import the client's public key from file key.pub and name it ClientKey.

[LB] public-key peer ClientKey import sshkey key.pub

# Specify the authentication method for the user client002 as publickey, and assign the public key
ClientKey to the user.

[LB] ssh user client002 service-type stelnet authentication-type publickey assign

publickey ClientKey

3.

Establish a connection to the Stelnet server:

a.

Launch PuTTY.exe on the Stelnet client to enter the following interface.

b.

In the Host Name (or IP address) field, enter the IP address 192.168.1.40 of the Stelnet server.

This manual is related to the following products: