Command Reference Guide

3Com Router 3000 Ethernet Family
Command Reference Guide
Error! Reference source not found.Error! Re
f
erence source not found.
3Com Corporation
9-20
9.2.12 rsa peer-public-key
Syntax
rsa peer-public-key key-name
rsa peer-public-key key-name import sshkey filename
View
System view
Parameter
key-name: Name of the public key.
filename: Name of the key file to be imported from Flash. The file must have exisited on
Flash.
Description
Use the rsa peer-public-key command to enter public key view. After that, you may
use the public-key-code begin command and the public-key-code end command to
configure the public key of the client.
Before performing those operations, you must obtain the RSA public key file generated
at the SSH client and use SSHKEY.EXE software to convert the generated public key to
a hexadecimal character string.
The following is an alternative way of configuring the public key of the client.
Use the rsa peer-public-key keyname import sshkey filename command to convert
the format of an RSA public key file generated at the SSH client to PKCS format and to
complete the configuration of the key automatically.
Unlike the rsa peer-public-key command, the rsa peer-public-key keyname import
sshkey filename command does not involve manual configuration. However, it
requires that the device functioning as the SSH client have upload its RSA public key to
the Flash at the SSH server end through FTP or TFTP.
The SSH client discussed here refers to both SSH 1.0 client and SSH 2.0 client.
Related command: public-key-code begin, public-key-code end.
Example
# Enter public key view.
[3com] rsa peer-public-key 3com002
[3com-rsa-public-key]
# Convert and configure the RSA public key of the client.
[3com] rsa peer-public-key 123 import sshkey pub2