H3C Technologies H3C S3100 Series Switches User Manual

Page 495

Advertising
background image

Operation Manual – SSH Terminal Service

H3C S3100-52P Ethernet Switch

Chapter 1 SSH Terminal Service

1-9

Note:

The above method requires you to transform the format of the public key on the client,
and then manually configure the transformed public key on the server. So, the method
is relatively more complex.


2) Automatic

configuration

First, perform the following operations on a client:

z

Use the SSH2.0 client software to randomly generate a RSA key pair.

z

Use FTP/TFTP to transfer the corresponding public key file to the Flash memory of
the server.

Then, perform the following operations on the server:

Table 1-7

Automatic configuration

Operation

Command

Description

Enter system view

system-view

Transform the format of the key

in a client public key file and

automatically configure a client

public key on the server

rsa peer-public-key
key-name

import

sshkey file-name

filename

must be

consistent with the name

of a public key file in the

Flash memory.

Note:

The above method does not require you to manually configure a public key. So the
method is relatively simple and is the recommended method.

VI. Specifying a source IP address/interface for the SSH server

You can perform the following configurations to specify a source IP address or a source
interface for the SSH server, thus enhancing traffic manageability.

Table 1-8

Specify a source IP address/interface for the SSH server

Operation

Command

Description

Enter system view

system-view

Specify a source IP address

for the SSH server

ssh-server source-ip ip-address

Optional

Specify a source interface

for the SSH server

ssh-server source-interface
interface-type interface-number

Optional

Advertising