Check the length of the SSH key

2020-12-14 22:57:33 Published
  • 0 Followed
  • 0Collected ,1343Browsed

Network Topology

null

Problem Description

Check the length of the SSH key

Process Analysis

Use display public peer to view on the device

 

1.1.2 display public-key peer

 

Use the display public-key peer command to display the public key information of the remote host stored locally.

 

【command】

 

display public-key peer [brief | name publickey-name]

 

【view】

 

Any view

 

【Default User Role】

 

network-admin

 

network-operator

 

mdc-admin

 

mdc-operator

 

【parameter】

 

brief: Display brief information of all remote host public keys stored locally.

 

name publickey-name: Displays the detailed information of the public key of the specified remote host saved locally. publickey-name is the name of the public key of the remote host, a string of 1 to 64 characters, case sensitive.

 

【User guides】

 

If no parameters are specified, the detailed information of all the remote host public keys saved locally is displayed.

 

The public key of the remote host can be configured locally through the public-key peer command or the public-key peer import sshkey command.

 

【Example】

 

# Display the detailed information of the remote host public key with the public key name idrsa saved locally.

<Sysname> display public-key peer name idrsa

 

=============================================

Key name: idrsa

Key type: RSA

Key modulus: 1024

Key code:

   30819F300D06092A864886F70D010101050003818D0030818902818100C5971581A78B5388

   B3C9063EC6B53D395A6704D9752B6F9B7B1F734EEB5DD509F0B050662C46FFB8D27F797E37

   918F6270C5793F1FC63638970A0E4D51A3CEF7CFF6E92BFAFD73F530E0BDE27056E81F2525

   6D0883836FD8E68031B2C272FE2EA75C87734A7B8F85B8EBEB3BD51CC26916AF3B3FDC32C3

   42C142D41BB4884FEB0203010001


Solution

Use display public peer to view on the device  

Please rate this case:   
0 Comments

No Comments

Add Comments: