The display rsa local-key-pair public command displays the public key in the local key pair.
You can run this command on the client and configure the client public key in the command output to the SSH server, which ensures that the SSH client validity check by the SSH server is successful and enables the secure data exchange between the SSH server and client.
# Display the public key in the local key pair.
<HUAWEI> display rsa local-key-pair public
===================================================== Time of Key pair created: 2012-08-15 06:41:55+08:00 Key name: HUAWEI_Host Key type: RSA encryption Key Key fingerprint: ab:ec:d7:e1:22:5f:e4:e3:6e:f0:d6:1f:99:e4:f2:f3 ===================================================== Key code: 3047 0240 D8D10BE8 CD41AA43 862B6C2B 637D1A53 1EBB4015 96A70B13 72B17A16 84E02168 4061A4C2 A1CDB541 484F71DB D7271E5F E3C75BEA AF853023 0CDCE55D ECCB0461 0203 010001 Host public key for PEM format code: ---- BEGIN SSH2 PUBLIC KEY ---- AAAAB3NzaC1yc2EAAAADAQABAAAAQQDY0QvozUGqQ4YrbCtjfRpTHrtAFZanCxNy sXoWhOAhaEBhpMKhzbVBSE9x29cnHl/jx1vqr4UwIwzc5V3sywRh ---- END SSH2 PUBLIC KEY ---- Public key code for pasting into OpenSSH authorized_keys file : ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAQQDY0QvozUGqQ4YrbCtjfRpTHrtAFZanCxNysXoWhOAhaEBhpMKhzbVBSE9x29cnHl/jx1vqr4UwIwzc5V3sywRh rsa-key ===================================================== Time of Key pair created: 2012-08-15 06:42:03+08:00 Key name: HUAWEI_Server Key type: RSA encryption Key Key fingerprint: 16:3b:43:4f:74:16:98:b3:5c:51:b5:a3:83:f8:86:19 ===================================================== Key code: 3067 0260 F31D5536 26C05536 6703885D E8FCDB00 07C45437 B3D08086 9E25B7B6 CFE375B2 1AA957EE 24D2DC51 BAA81ECD 6894F71E 20596754 35653808 C8B74ACB DE94C584 1E234FED 840900F0 4A4100FB C133DFB7 12D4B4DB EF0C3E1F E211202A F45DD5DD 0203 010001
Item |
Description |
---|---|
Time of Key pair created |
Time and date when the public key was created. |
Key Name |
The value can be the host or server public key. The server public key is saved only when the key type is RSA. |
Key Type |
Type of the public key. |
Key fingerprint |
Public key fingerprint. |
Key Code |
Code of the public key. |