379
<Sysname> system-view
[Sysname] public-key local export ecdsa openssh key.pub
# Display the host public key of the local ECDSA key pair with the default name in SSH 2.0 format.
<Sysname> system-view
[Sysname] public-key local export ecdsa ssh2
---- BEGIN SSH2 PUBLIC KEY ----
Comment: "ecdsa-sha2-nistp256-2014/07/06"
AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBREw5sYArt/xcW+UJEAevx7O
ckTtTLPBiLP5bW3oHRuIyZqmNTIcxpHc919C58=
---- END SSH2 PUBLIC KEY ----
# Display the host public key of the local ECDSA key pair with the default name in OpenSSH format.
<Sysname> system-view
[Sysname] public-key local export ecdsa openssh
ecdsa-sha2-nistp256
AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBBREw5sYArt/xcW+UJEAevx7O
ckTtTLPBiLP5bW3oHRuIyZqmNTIcxpHc919C58=
ecdsa-key
Related commands
public-key local create
public-key peer import sshkey
public-key local export rsa
Use
public-key local export rsa
to export a local RSA host public key.
Syntax
In non-FIPS mode:
public-key local export rsa
[
name
key-name
] {
openssh
|
ssh1
|
ssh2
}
[
filename
]
In FIPS mode:
public-key local export rsa
[
name
key-name
] {
openssh
|
ssh2
}
[
filename
]
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
name key-name
: Specifies a local RSA 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 RSA key pair with the default name.
openssh
: Exports the host public key in OpenSSH format.
ssh1
: Exports the host public key in SSH 1.5 format.
ssh2
: Exports the host public key in SSH 2.0 format.
filename
: Specifies the name of the file for saving the RSA host public key. The file name is a
case-insensitive string. The name cannot be all dots (.), hostkey, serverkey, dsakey, or ecdsakey,
and cannot start with a slash (/) or contain
./
and
../
. The file name can contain 1 to 128 characters.
Содержание 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 ...