3Com 5500-EI PWR Reference Manual page 992

Hide thumbs Also See for 5500-EI PWR:
Table of Contents

Advertisement

openssh: Uses the format of OpenSSH.
ssh2: Uses the format of SSH2.
filename: Name of the file for saving the public key, a string of 1 to 142 characters. For file naming rules,
refer to File System Management Command.
Description
Use the public-key local export dsa command to export the current switch's DSA key pair to a
specified file.
If you specify a filename, the command exports the public key to the specified file and saves it;
otherwise, the command displays the public key on the screen.
SSH2 and OpenSSH are two public key formats. You can choose one as required. For example, if
you want to export the DSA host public key to a file in the SSH2 format, use the public-key local
export dsa ssh2 filename command.
The host public key displayed on the screen is in a format that is not transformed and cannot be
used as the public key data for public key configuration.
Related commands: public-key local create.
Examples
# Generate a DSA key pair.
<Sysname> system-view
[Sysname]public-key local create dsa
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
It will take a few minutes.
Input the bits in the modulus[default = 1024]:
Generating keys...
.++++++++++++++++++++++++++++++++++++++++++++++++++*
........+......+.....+......................................+..+.......................+
..........+..............+.............+...+.....+...............+..+......+............
.....+..........+...+....+.......+.....+............+.........+.........................
+........+..........+..............+.....+...+........................+.........+.......
...+...........+........+....+.......................+++++++++++++++++++++++++++++++++++
++++++++++++++++*
.......
# Display the public key in the SSH2 format.
[Sysname] public-key local export dsa ssh2
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "dsa-key-20000406"
AAAAB3NzaC1kc3MAAACA11cmLEWExEwhHxi9luXwYcTwpCP3/mtrhbNM73LOFKDTpSIv4Izs5lvmwmWFSIncHtvR
PsiydNqfdbomzLmHcjYCeH6SK6hEIfIsPInLmwb9YP4BlB3dd/5rEok9p27rwdEo2X8GeNdyK1NByFBvNYIUsWov
1-16

Advertisement

Chapters

Table of Contents
loading

This manual is also suitable for:

5500-ei series

Table of Contents