The display rsa local-key-pair public command displays the public key in the local key pair.
When configuring the device, you can run the display rsa local-key-pair public command on the client and copy the client public key code from the echo message to the RSA public key on the SSH server.
# Display the public key in the local key pair.
<sysname> display rsa local-key-pair public
=====================================================
Time of Key pair created: 2013/3/13 21:30:01
Key name: sysname_Host
Key type: RSA encryption Key
=====================================================
Key code:
3067
0260
D4F053DC 27C198B8 72497566 0F157E8C 2313EF04
779E5730 6D458DB0 62E961B7 6E28227A 00A39455
36F79E73 FDBED10F F4FEBD24 6008205B 69488914
60B8D243 AD38BB60 9B71D10C 1CA9BBC2 441FEC57
55855A38 AAC8DB85 5890164F 5D387543
0203
010001
Host public key for PEM format code:
---- BEGIN SSH2 PUBLIC KEY ----
AAAAB3NzaC1yc2EAAAADAQABAAAAYQDU8FPcJ8GYuHJJdWYPFX6MIxPvBHeeVzBt
RY2wYulht24oInoAo5RVNveec/2+0Q/0/r0kYAggW2lIiRRguNJDrTi7YJtx0Qwc
qbvCRB/sV1WFWjiqyNuFWJAWT104dUM=
---- END SSH2 PUBLIC KEY ----
Public key code for pasting into OpenSSH authorized_keys file :
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAYQDU8FPcJ8GYuHJJdWYPFX6MIxPvBHeeVzBtRY2wYulh
t24oInoAo5RVNveec/2+0Q/0/r0kYAggW2lIiRRguNJDrTi7YJtx0QwcqbvCRB/sV1WFWjiqyNuFWJAW
T104dUM= rsa-key
=====================================================
Time of Key pair created: 2013/3/13 21:30:02
Key name: sysname_Server
Key type: RSA encryption Key
=====================================================
Key code:
3057
0250
E5F7E96E 0BEB5338 CAE1232E EC672625 4A1C8635
4BFBE4D7 8E1AD4D1 F7E9A282 7DD0E223 A53A2266
324D74D9 815A52DE 97C9E718 297EB615 CF4AA3D9
BD1BF777 0B8F43E6 CD0DB3B0 BB485F6D B19E3DCD
0203
010001
Item |
Description |
|---|---|
Time of Key pair created |
Time when the public key is generated |
Key name |
Name of the public key |
Key type |
Type of the public key |
Key code |
Code of the public key |
Host public key for PEM format code |
SSH key before conversion |
Public key code for pasting into OpenSSH authorized_keys file |
Public key format for OpenSSH files |