1-15
z
SSH1, SSH2, and OpenSSH are three public key formats. You can choose one as required. For
example, if you want to export the RSA host public key to a file in the SSH1 format, use the
public-key local export rsa ssh1 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
,
rsa local-key-pair create
.
Examples
# Generate RSA key pairs.
<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 AAAAB3NzaC1yc2EAAAADAQABAAxIkHkAo6EeN9EqW/6FIYEIlVKcpIa0
6IT4eSyq4OldeiZ9WorOiDqX3ROo4FmaTR/QCSK3C9whE1qz/4soVL1eHDdgzQCumKKsJCVaM5OdZ2sdNbEnhLuc
s8ZrfTgEkDB1hmbgzuDpWPo8dC+hkFVV rsa-key
# Export the host public key 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 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.
Содержание 5500-EI PWR
Страница 43: ...2 6...
Страница 76: ...1 17...
Страница 228: ...ii stp transmit limit 1 44 vlan mapping modulo 1 45 vlan vpn tunnel 1 46...
Страница 477: ...5 24 Sysname vlan 2 Sysname vlan2 service type multicast...
Страница 503: ...2 3 System View return to User View with Ctrl Z Sysname dot1x url http 192 168 19 23...
Страница 519: ...iii...
Страница 597: ...2 2 security policy server 192 168 0 1 user name format without domain...
Страница 648: ...1 9 Examples Clear static ARP entries Sysname reset arp static...
Страница 663: ...4 3 Sysname resilient arp interface vlan interface 2...
Страница 767: ...1 28 From 12 00 Jan 1 2008 to 12 00 Jun 1 2008...
Страница 1111: ...ii xmodem get 3 18...
Страница 1314: ...A 44 Z...