214
To do…
Command…
Remarks
2.
Import the host public key of a
remote host from the public
key file.
public-key peer
keyname
import
sshkey
filename
Required
To configure a remote host's public key manually:
To do…
Command…
Remarks
1.
Enter system view.
system-view
—
2.
Specify a name for a remote
host's public key and enter
public key view.
public-key peer
keyname
Required.
3.
Enter public key code view.
public-key-code begin
—
4.
Configure the server or host
public key of the remote host. Type or copy the key
Required.
Spaces and carriage returns are
allowed between characters.
5.
Return to public key view.
public-key-code end
Required.
When you exit public key code
view, the system automatically
saves the public key.
6.
Return to system view.
peer-public-key end
—
NOTE:
Do not configure an RSA server public key of the remote host for identity authentication in SSH
applications. Authentication in SSH applications uses the RSA host public key. For more information,
Displaying and maintaining public keys
To do…
Command…
Remarks
Display the public keys of the
local key pairs
display public-key local
{
dsa
|
rsa
}
public
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display the public keys of the
remote hosts
display public-key peer
[
brief
|
name
publickey-name
] [
|
{
begin
|
exclude
|
include
}
regular-
expression
]