Command Manual ( For Soliton ) – SSH
H3C S3100 Series Ethernet Switches
Chapter 1 SSH Commands
1-21
Parameters
None
Description
Use the
public-key-code end
command to return from public key edit view to public
key view and save the public key you input.
After you use this command to end editing the public key, the system will check the
validity of the public key before saving the key.
z
If there is any illegal character in the key, your configuration fails. In this case, a
prompt is displayed and the key is discarded.
z
If the key is valid, it is saved in the local public key list.
Related commands:
rsa peer-public-key
,
public-key peer
,
public-key-code begin
.
Examples
# Exit public key edit view and save the public key you input.
<Sysname> system-view
System View: return to User View with Ctrl+Z.
[Sysname] rsa peer-public-key Switch003
RSA public key view: return to System View with "peer-public-key end".
[Sysname-rsa-public-key] public-key-code begin
RSA key code view: return to last view with "public-key-code end".
[Sysname-rsa-key-code] 308186028180739A291ABDA704F5D93DC8FDF84C427463
[Sysname-rsa-key-code] 1991C164B0DF178C55FA833591C7D47D5381D09CE82913
[Sysname-rsa-key-code] D7EDF9C08511D83CA4ED2B30B809808EB0D1F52D045DE4
[Sysname-rsa-key-code] 0861B74A0E135523CCD74CAC61F8E58C452B2F3F2DA0DC
[Sysname-rsa-key-code] C48E3306367FE187BDD944018B3B69F3CBB0A573202C16
[Sysname-rsa-key-code] BB2FC1ACF3EC8F828D55A36F1CDDC4BB45504F020125
[Sysname-rsa-key-code] public-key-code end
[Sysname-rsa-public-key]
1.1.18 rsa local-key-pair create
Syntax
rsa local-key-pair create
View
System view
Parameters
None