Follow these steps to import the RSA public key from a public key file:

 

To do…

Use the command…

Remarks

 

 

Enter system view

system-view

 

 

 

 

 

 

 

Import the RSA public key from

rsa peer-public-key keyname

Required

 

 

a public key file

import sshkey filename

 

 

 

 

 

 

 

 

 

The result of the display rsa local-key-pair public command or the public key converted with the SSHKEY tool contains no information such as the authentication type, so they cannot be directly used as parameters in the public-key peer command. For the same reason, neither can the result of the display public-key local rsa public command be used in the rsa peer-public-keycommand directly.

Assigning a Public Key to an SSH User

This configuration task is unnecessary if the SSH user’s authentication mode is password.

For the publickey authentication mode, you must specify the client’s public key on the server for authentication.

Follow these steps to assign a public key for an SSH user:

 

To do…

Use the command…

Remarks

 

 

Enter system view

system-view

 

 

 

 

 

 

 

 

 

Required

 

 

Assign a public key to an

ssh user username assign

If you issue this command multiple

 

 

SSH user

{ publickey rsa-key } keyname

times, the last command overrides

 

 

 

 

the previous ones.

 

 

 

 

 

 

Both the keywords publickey and rsa-keyrepresent the public key, and have the same implementation.

Specifying a Source IP Address/Interface for the SSH Server

This configuration task allows you to specify a source IP address or interface for the SSH server, which is used by clients as the destination.

1-11

Page 508
Image 508
3Com WX3000 Assigning a Public Key to an SSH User, Specifying a Source IP Address/Interface for the SSH Server