R3102-R3103-HP 6600/HSR6600 Routers Security Command Reference
241
Parameters
dsa: DSA key pair.
rsa: RSA key pair.
Examples
# Destroy the local RSA key pairs.
<Sysname> system-view
[Sysname] public-key local destroy rsa
Warning: Confirm to destroy these keys? [Y/N]:y
# Destroy the local DSA key pair.
<Sysname> system-view
[Sysname] public-key local destroy dsa
Warning: Confirm to destroy these keys? [Y/N] :y
Related commands
public-key local create
public-key local export dsa
Use public-key local export dsa without the filename argument to display the host public key of the local
DSA key pair in a specific format.
Use public-key local export dsa with the filename argument to export the host public key of the local DSA
key pair to the specified file.
Syntax
public-key local export dsa { openssh | ssh2 } [ filename ]
Views
System view
Default command level
2: System level
Parameters
openssh: Uses the format of OpenSSH.
ssh2: Uses the format of SSH2.0.
filename: Specifies the name of the file for storing the local public key. For more information about file
name, see Fundamentals Configuration Guide.
Usage guidelines
SSH2.0 and OpenSSH are different public key formats. Choose the proper format that is supported on
the device where you import the host public key.
Examples
# Export the local DSA host public key in OpenSSH format to the file named key.pub.
<Sysname> system-view
[Sysname] public-key local export dsa openssh key.pub
# Display the local DSA host public key in SSH2.0 format.
<Sysname> system-view










