The display ecc local-key-pair public command displays information about the public key in the local Elliptic Curves Cryptography (ECC) key pair.
Usage Scenario
You can run the display ecc local-key-pair public command to check information about the public key in the local ECC key pair on a client and then copy the public key to the server. The public key enables a server to authenticate users and ensures the login of authorized users.
Pre-configuration Tasks
You must run the ecc local-key-pair create command to generate a local ECC host key pair before using the command.
# Display information about the public key in the local ECC key pair on a client.
<HUAWEI> display ecc local-key-pair public ===================================================== Time of Key pair created:2016-10-19 11:50:20+00:00 Key name : HUAWEI_Host_ECC Key modulus : 521 Key type : ECC encryption Key Key fingerprint: ===================================================== Key code: 0401CE1E 5EF3B843 CD917648 1D70EF8F CECE8518 5B32ED5F 529E9DC4 D16EDF1A 5F6E6389 10AAE2D4 74FD9DA7 F05AB123 9AF3EE64 9F0BAF99 A0CBF55B E319B2D1 8EDEBB01 7C63469B C62A2256 3EAEA0BD 486F9524 8559C7EF 24D969D1 11093BBF 27F770E7 03E28ABA BB357E5B 28EF04CC EA931C81 C7D7EBD8 5797B1CD 05D9B497 56D91126 E9 Host public key for PEM format code: ---- BEGIN SSH2 PUBLIC KEY ---- AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAHOHl7zuEPN kXZIHXDvj87OhRhbMu1fUp6dxNFu3xpfbmOJEKri1HT9nafwWrEjmvPuZJ8Lr5mg y/Vb4xmy0Y7euwF8Y0abxioiVj6uoL1Ib5UkhVnH7yTZadERCTu/J/dw5wPiirq7 NX5bKO8EzOqTHIHH1+vYV5exzQXZtJdW2REm6Q== ---- END SSH2 PUBLIC KEY ---- Public key code for pasting into OpenSSH authorized_keys file : ecdsa-sha2-nistp521 AAAAE2VjZHNhLXNoYTItbmlzdHA1MjEAAAAIbmlzdHA1MjEAAACFBAHOHl7z uEPNkXZIHXDvj87OhRhbMu1fUp6dxNFu3xpfbmOJEKri1HT9nafwWrEjmvPuZJ8Lr5mgy/Vb4xmy0Y7e uwF8Y0abxioiVj6uoL1Ib5UkhVnH7yTZadERCTu/J/dw5wPiirq7NX5bKO8EzOqTHIHH1+vYV5exzQXZ tJdW2REm6Q== ecdsa-key
Item |
Description |
---|---|
Time of Key pair created |
Time when the public key in the local ECC key pair is generated, in the format of YYYY-MM-DD HH:MM:SS. |
Key Name |
Name of the public key in the local ECC key pair. |
Key modulus |
Length of the public key in the local ECC key pair on a client. |
Key Type |
Type of the public key in the local ECC key pair. "ECC encryption Key" indicates an ECC public key. |
Key Code |
Code of the public key in the local ECC key pair configured using the ecc local-key-pair create command. |
Host public key for PEM format code |
PEM code of the public key in the local ECC key pair on a client. |
Public key code for pasting into OpenSSH authorized_keys file |
Public key in the local ECC key pair on a client that is used for OpenSSH authorization. This information can be used after being copied to the OpenSSH authorized_keys file. |