3com WX3000 User Manual

Page of 715
 
1-11 
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 
a public key file 
rsa peer-public-key keyname 
import sshkey filename 
Required 
 
 
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-key command 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 
— 
Assign a public key to an 
SSH user 
ssh user username assign 
publickey | rsa-key keyname 
Required 
If you issue this command multiple 
times, the last command overrides 
the previous ones. 
 
 
Both the keywords publickey  and rsa-key represent 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.