140
•
Displaying the host public key in a specific format and saving it to a file
•
Exporting the host public key in a specific format to a file
If your local device functions to authenticate the peer device, you must specify the peer public key on the
local device. For more information, see "
Specifying the peer public key on the local device
."
Displaying and recording the host public key information
After you display the host public key, record the key information for manual configuration of the key on
the peer device.
To display the local public key:
To do…
Use the command…
Remarks
1.
Display the local RSA public
keys.
display public-key local
rsa
public
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Required.
Available in any view.
Use at least one command.
2.
Display the local host public
key.
display public-key local
dsa
public
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
The
display public-key local rsa public
command displays both the RSA server and host public keys.
Recording the RSA host public key is enough.
Displaying the host public key in a specific format and saving it to a file
After you display the host public key in a specify format, save the key to a file, and transfer this file to
the peer device.
To display the local host public key in a specified format:
To do…
Use the command…
Remarks
1.
Enter system view.
system-view
—
2.
Display the local RSA host
public key in a specified
format.
public-key local export rsa
{
openssh
|
ssh1
|
ssh2
}
Required.
Use at least one command.
3.
Display the local DSA host
public key in a specified
format.
public-key local export dsa
{
openssh
|
ssh2
}
Exporting the host public key in a specific format to a file
After you export and save the host public key in a specify format to a file, transfer the file to the peer
device.
To export and save the local host public key to a file:
To do…
Use the command…
Remarks
1.
Enter system view.
system-view
—
2.
Export and save the local RSA
host public key in a specific
format to a file.
public-key local export rsa
{
openssh
|
ssh1
|
ssh2
}
filename
Required.
Use at least one command.
3.
Export and save the local
DSA host public key in a
specific format to a file.
public-key local export dsa
{
openssh
|
ssh2
}
filename
Содержание A5830 Series
Страница 207: ...199 Figure 62 SFTP client interface ...