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
Displaying and recording the host public key information
To display the local public key:
Task
Display the local RSA public keys.
Display the local host public key.
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.
After displaying the host public key, record the key information for manual configuration of the key on the
peer device.
Displaying the host public key in a specific format and saving it to a file
To display the local host public key in a specific format:
Step
1.
Enter system view.
2.
Display the local RSA or
DSA host public key in a
specific format.
After you display the host public key in a specify format, save the key to a file (in a method such as
copy-paste), and transfer this file to the peer device.
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:
Step
1.
Enter system view.
2.
Export a local RSA or DSA
host public key in a specific
format to a file.
"Specifying the peer public key on the local
Command
display public-key local rsa public
[ | { begin | exclude | include }
regular-expression ]
display public-key local dsa public
[ | { begin | exclude | include }
regular-expression ]
Command
system-view
•
To display the local RSA host public key:
public-key local export rsa { openssh | ssh1
| ssh2 }
•
To display the local DSA host public key:
public-key local export dsa { openssh |
ssh2 }
Command
system-view
•
To export a local RSA host public key:
public-key local export rsa { openssh |
ssh1 | ssh2 } filename
•
To export a local DSA host public key:
public-key local export dsa { openssh |
ssh2 } filename
149
device."
Remarks
Available in any view.
Use at least one command.
Remarks
N/A
Use at least one command.
Remarks
N/A
Use at least one command.