public-key-code begin

Function

The public-key-code begin command displays the edit view of the public key.

Format

public-key-code begin

Parameters

None

Views

DSA public key view, ECC public key view, sm2 public key view, Public key view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
ssh-server write

Usage Guidelines

  • Before using this command, you must use the rsa peer-public-key command to specify one key name.
  • After inputting the public-key-code begin command displays the public key edit view, and then input the key characters. Spaces can exist between characters. You can press Enter to continue inputting the key character.
  • The public key configured must be a hex character string coded according to the public key format. It is randomly generated by the client software supporting SSH.
  • The content of a key does not support Chinese characters.

Example

# Enter the public key edit view and input the key.
<HUAWEI> system-view
[~HUAWEI] rsa peer-public-key 003
Enter "RSA public key" view, and you can return the system view with "peer-public-key end".
[*HUAWEI-rsa-public-key] public-key-code begin
Enter "RSA key code" view, and you can return the last view with "public-key-code end"
[*HUAWEI-rsa-public-key-rsa-key-code] 308186028180739A291ABDA704F5D93DC8FDF84C427463
[*HUAWEI-rsa-public-key-rsa-key-code] 1991C164B0DF178C55FA833591C7D47D5381D09CE82913
[*HUAWEI-rsa-public-key-rsa-key-code] D7EDF9C08511D83CA4ED2B30B809808EB0D1F52D045DE4
[*HUAWEI-rsa-public-key-rsa-key-code] 0861B74A0E135523CCD74CAC61F8E58C452B2F3F2DA0DC
[*HUAWEI-rsa-public-key-rsa-key-code] C48E3306367FE187BDD944018B3B69F3CBB0A573202C16
[*HUAWEI-rsa-public-key-rsa-key-code] BB2FC1ACF3EC8F828D55A36F1CDDC4BB45504F020125
[*HUAWEI-rsa-public-key-rsa-key-code] public-key-code end
[*HUAWEI-rsa-public-key]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >