Public-Key Local Export Dsa - H3C S3100 Series Command Manual

Hide thumbs Also See for S3100 Series:
Table of Contents

Advertisement

Related commands: public-key local create, rsa local-key-pair create.
Examples
# Generate an RSA key pair.
<Sysname> system-view
[Sysname] public-key local create rsa
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 host public key in the OpenSSH format.
[Sysname]public-key local export rsa openssh
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAgMSPi+xIkHkAo6E9LwLKWN+eN9EqW/6FIYEIlVKcpIa0
6IT4eSyq4OldeiZ9WorOiDqX3ROo4FmaTR/QCSK3C9whE1qz/4soVL1eHDdgzQCumKKsJCVaM5OdZ2sdNbEnhLuc
s8ZrfTgEkDB1hmbgzuDpWPokPfkQDD+8dC+hkFVV rsa-key
# Export the host public key of the RSA key pair in the format of OpenSSH and save the public key file
as pub_ssh_file2.
[Sysname] public-key local export rsa openssh pub_ssh_file2
# Export the host public key of the RSA key pair in the format of SSH1 and save the public key file as
pub_ssh_file3.
[Sysname] public-key local export rsa ssh1 pub_ssh_file3

public-key local export dsa

Syntax
public-key local export dsa { openssh | ssh2 } [ filename ]
View
System view
Parameters
dsa: Specifies the public key of the current switch's DSA key pair.
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.
1-14

Advertisement

Table of Contents
loading

Table of Contents