378
Related commands
public-key local create
public-key peer import sshkey
public-key local export ecdsa
Use
public-key local export ecdsa
to export a local ECDSA host public key.
Syntax
public-key local export ecdsa
[
name
key-keyname
] {
openssh
|
ssh2
} [
filename
]
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
name key-name
: Specifies a local ECDSA key pair by its name, a case-insensitive string of 1 to 64
characters. Valid characters are letters, digits, and hyphens (-). If you do not specify a key pair, this
command exports the host public key of the local ECDSA key pair with the default name.
openssh
: Exports the host public key in OpenSSH format.
ssh2
: Exports the host public key in SSH 2.0 format.
filename
: Specifies the name of the file for saving the local host public key. The file name is a string of
case-insensitive characters. The name cannot be dots (.), hostkey, serverkey, dsakey, or ecdsakey,
and cannot start with a slash (/) or contain
./
and
../
. The file name can contain 1 to 128 characters.
For more information about file names, see
Fundamentals Configuration Guide
.
If you do not specify
a file name, this command displays the key on the monitor screen.
Usage guidelines
You can use this command to export a local ECDSA host public key before distributing it to a peer
device.
To distribute a local ECDSA host public key to a peer device:
1.
Save the exported ECDSA host public key to a file by using one of the following methods:
Use the
public-key local export ecdsa
[
name
key-name
] {
openssh
|
ssh2
} command to export
the local host public key, and then copy and paste it to a file.
Use the
public-key local export ecdsa
[
name
key-name
] {
openssh
|
ssh2
}
filename
command
to export the host public key to a file. You cannot export the key to the folder
pkey
or its subfolders.
2.
Transfer a copy of the file to the peer device, for example, by using FTP in binary mode or TFTP.
For more information about FTP and TFTP, see
Fundamentals Configuration Guide
.
3.
On the peer device, use the
public-key peer import
sshkey
command to import the host
public key from the file.
SSH 2.0 and OpenSSH are different public key formats. Choose the correct format that is supported
by the device where you import the host public key.
Only the ECDSA host public key generated by using the secp256r1 curve can be exported.
Examples
# Export the host public key of the local ECDSA key pair with the default name in OpenSSH format to
the file named
key.pub
.
Содержание FlexNetwork 7500 Series
Страница 350: ...335 Related commands display port security port security enable ...
Страница 379: ...364 Sysname system view Sysname keychain abc mode absolute Sysname keychain abc tcp kind 252 ...
Страница 519: ...504 Related commands display ssh2 algorithm ssh2 algorithm cipher ssh2 algorithm key exchange ssh2 algorithm mac ...