The display rsa peer-public-key command displays the specified RSA public key. If no public key is specified, all public keys are displayed.
Parameter | Description | Value |
---|---|---|
brief |
Displays the brief information about the RSA public key configured on the remote end. |
- |
name key-name |
Displays the name of the RSA public key configured on the remote end. |
The value is a string of 1 to 40 case-sensitive characters, spaces not supported. When quotation marks are used around the string, spaces are allowed in the string. |
Usage Scenario
To display information about the public key in the RSA key pair configured on the remote end connected to the local device functioning as an SSH client, run the display rsa peer-public-key command. The public key enables the server to authenticate users and permits the login requests of authorized users.
Prerequisites
Before running the display rsa peer-public-key command, run the rsa peer-public-key command to generate the peer public key.
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display rsa peer-public-key brief
------------------------------------------
Bits Name
------------------------------------------
512 rsakey001
------------------------------------------
<HUAWEI> display rsa peer-public-key name rsakey001
=====================================
Key name: rsakey001
Encoding type : DER
=====================================
Key Code:
3082010A
02820101
00CCC168 17AF99D1 F12E8301 9D33B753 AA37F4C6 F2442CED B6BBAB74 97041EE5
ABF97653 18F57E07 287F542F 9D787442 C2DB6243 2AC94FF0 ED879FCC 3DC13BCD
6B96BA01 A51E2055 A8469A74 29180292 095FEEC0 EE3146AE 9D46DC16 C41EF950
EE569BF0 71563C4B 34D47F69 AA06B3B4 C1F36BCC 324C04F7 D08E7FB8 2CC73B11
215D7F84 A76F76C5 BF3B09AA E8F9069B E46852DC CBCA31AC 44AB91BF 8EA6BEEE
321B1DCB 2BACEF5C EE6D44A6 6D0D3238 B5132762 17BCEEBE 4AE01499 48931089
5FFBA419 29F4E322 1BFDD6F8 2BB49919 7A050FBD DFB1C197 CDADA3E8 CA3F8ECA
CD5DEB8F B22104B1 6254F97C 1555D669 A25D2E02 3C8312B7 C43FD2AD 7DCA305D
1B
0203
010001
Item | Description |
---|---|
Key name | Name of the public key. |
Key Code | Code of the public key. |
Encoding type | Coding type of the public key. |