2182 CHAPTER 142: SSH2.0 CONFIGURATION COMMANDS

Parameter dsa: DSA key pair. rsa: RSA key pair.

Description Use the public-key local destroy command to destroy the local key pair(s).

Related command: public-key local create.

Example # Destroy local RSA key pair.

<Sysname> system-view

[Sysname] public-key local destroy rsa Warning: Confirm to destroy these keys? [Y/N]:y

# Destroy local DSA key pair.

<Sysname> system-view

[Sysname] public-key local destroy dsa

Warning: Confirm to destroy these keys? [Y/N] : y

public-key local export rsa

Syntax

public-key local export rsa { openssh ssh1 ssh2 } [ filename ]

View

System view

Parameter

openssh: Uses the format of OpenSSH.

 

ssh1: Uses the format of SSH1.

 

ssh2: Uses the format of SSH2.

 

filename: Name of the file for storing public key.

Description

Use the public-key local export rsa command to display the local RSA public

 

key on the screen or export it to a specified file.

 

If you do not specify the filename argument, the command displays the local RSA

 

public key on the screen; otherwise, the command exports the local RSA public

 

key to the specified file and saves the file.

 

SSH1, SSH2 and OpenSSH are three different public key file formats for different

 

requirements.

Related command:

public-key local create, public-key local destroy.

Example

# Export the local RSA public key in OpenSSH format.

 

<Sysname> system-view

 

[Sysname] public-key local export rsa openssh key.pub

# Display the local RSA public key in SSH2 format.

Page 2182
Image 2182
3Com MSR 30, MSR 50 manual Public-key local export rsa, Related command public-key local create