1-16
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.
z
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.
z
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
Summary of Contents for 5500-EI Series
Page 43: ...2 6 ...
Page 76: ...1 17 ...
Page 228: ...ii stp transmit limit 1 44 vlan mapping modulo 1 45 vlan vpn tunnel 1 46 ...
Page 477: ...5 24 Sysname vlan 2 Sysname vlan2 service type multicast ...
Page 503: ...2 3 System View return to User View with Ctrl Z Sysname dot1x url http 192 168 19 23 ...
Page 519: ...iii ...
Page 597: ...2 2 security policy server 192 168 0 1 user name format without domain ...
Page 648: ...1 9 Examples Clear static ARP entries Sysname reset arp static ...
Page 663: ...4 3 Sysname resilient arp interface vlan interface 2 ...
Page 767: ...1 28 From 12 00 Jan 1 2008 to 12 00 Jun 1 2008 ...
Page 1111: ...ii xmodem get 3 18 ...
Page 1314: ...A 44 Z ...