H3C S3100 Series Command Manual page 817

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

Description
Use the display public-key peer command to display information about locally saved public keys of
SSH peers. If no key name is specified, the command displays detailed information about the locally
saved public keys of all SSH peers.
Sometimes the public key modulo displayed with the display public-key peer command is one bit
smaller than the actual modulo. This is because the actually generated key pair is one bit smaller than
specified. For example, when you specify a 1024-bit key pair, the actually generated key pair may have
1024 or 1023 bits.
You can configure an SSH peer's public key on the current switch by using the public-key peer
command or the public-key peer import sshkey command.
Related commands: public-key peer, public-key peer import sshkey.
Examples
# Display brief information about all peer public keys.
<Sysname> display public-key peer brief
Type
Module
Name
---------------------------
RSA
1023
idrsa
DSA
1024
127.0.0.1
RSA
1024
18
# Display the information about the public key named pubkey-name.
<Sysname> display public-key peer name pubkey-name
=====================================
Key name
: pubkey-name
Key type
: RSA
Key module: 1024
=====================================
Key Code:
30819D300D06092A864886F70D010101050003818B00308187028181009C46A8710216CEC0
C01C7CE136BA76C79AA6040E79F9E305E453998C7ADE8276069410803D5974F708496947AB
39B3F39C5CE56C95B6AB7442D56393BF241F99A639DD02D9E29B1F5C1FD05CC1C44FBD6CFF
B58BE6F035FAA2C596B27D1231D159846B7CB9A7757C5800FADA9FD72F65672F4A549EE99F
63095E11BD37789955020123
1-3

Advertisement

Table of Contents
loading

Table of Contents