Exporting a host public key in a specific format to a file
•
keys from a file on the peer device)
Displaying a host public key in a specific format and saving it to a file
•
import public keys from a file on the peer device)
Displaying a host public key
•
Exporting a host public key in a specific format to a file
Step
1.
Enter system view.
2.
Export a local host public key
in a specific format to a file.
Displaying a host public key in a specific format and saving it
to a file
After you display a host public key in a specific format, save the key to a file and transfer the file to the
peer device.
To display a local host public key in a specific format:
Step
1.
Enter system view.
2.
Display local host public keys
in a specific format.
Displaying a host public key
Display a host public key and copy it to an unformatted file. You must literally enter the key on the peer
device.
Perform the following tasks in any view:
Task
Display local RSA public keys.
Display local DSA public keys.
(use this method if you must manually enter the key on the peer device)
Command
system-view
•
Export an RSA host public key:
public-key local export rsa [ name key-name ] { openssh | ssh1 |
ssh2
} filename
•
Export a DSA host public key:
public-key local export dsa [ name key-name ] { openssh | ssh2 }
filename
Command
system-view
•
Display RSA host public keys:
public-key local export rsa [ name key-name ] { openssh | ssh1 |
ssh2 }
•
Display DSA host public keys:
public-key local export dsa [ name key-name ] { openssh | ssh2 }
Command
display public-key local rsa public [ name key-name ]
display public-key local dsa public [ name key-name ]
62
(use this method if you can import public
(use this method if you can