RSA and Certificate Commands
78-21075-01 Command Line Interface Reference Guide
OcdK/2nw7lCQguy1mLsX8/bKMXYSk/3aBEvaoJQ82+r/nRf0y3HTy4Wp9zV0SiVC8jLD+7
7t0aHejzfUhr0FRhWWcLnvYwr+nmrYDpS6FADMC2hVA85KZRye9ifxT7otE=
---- END SSH2 PUBLIC KEY ----
4.4
show crypto key
The show crypto key Privileged EXEC mode command displays the device's SSH
private and public keys for both default and user-defined keys.
Syntax
mypubkey
show crypto key [
Parameters
•
mypubkey—Displays only the public key.
•
rsa—Displays the RSA key.
•
dsa—Displays the DSA key.
Default Configuration
N/A
Command Mode
Privileged EXEC mode
User Guidelines
See
Keys and Certificates
Example
The following example displays the SSH public DSA keys on the device.
switchxxxxxx#
show crypto key mypubkey dsa
---- BEGIN SSH2 PUBLIC KEY ----
Comment: RSA Public Key
AAAAB3NzaC1yc2EAAAABIwAAAIEAzN31fu56KSEOZdrGVPIJHpAs8G8NDIkB
dqZ2q0QPiKCnLPw0Xsk9tTVKaHZQ5jJbXn81QZpolaPLJIIH3B1cc96D7IFf
[rsa | dsa]
]
for information on how to display and copy these keys.
4
73