3com 4210 PWR 9-Port 3CR17341-91-ME User Manual

Product codes
3CR17341-91-ME
Page of 567
Configuring the SSH Server
395
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
CAUTION: 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.
Both the keywords publickey and rsa-key represent the public key, and have the 
same implementation.
Table 309   Configure the client RSA public key manually
Operation 
Command 
Description 
Enter system view 
system-view 
Enter public key view 
rsa peer-public-key 
keyname 
Required 
Enter public key edit view 
public-key-code begin 
Configure the client RSA 
public key 
Enter the content of the RSA 
public key 
The content must be a 
hexadecimal string that is 
generated randomly by the 
SSH-supported client software 
and coded compliant to PKCS. 
Spaces and carriage returns 
are allowed between 
characters. 
Return from public key code 
view to public key view 
public-key-code end 
When you exit public key 
code view, the system 
automatically saves the public 
key. 
Return from public key view 
to system view 
peer-public-key end 
Table 310   Assign a public key for an SSH user
Operation 
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.