6
130
•
rsa— Specifies displaying the RSA key type.
•
mypubkey— Specifies that only the public key is selected to be displayed.
Command Mode
Privileged EXEC mode
User Guidelines
Use the command with a specific key-type to display the SSH client key; You can
either specify display of public key or private key, or with no parameter to display
both private and public keys. The keys are displayed in the format specified by
RFC 4716.
Examples
Example 1 - The following example displays the authentication method and the
RSA public key:
switchxxxxxx
# show ip ssh-client mypubkey rsa
Authentication method: RSA key
Username:
Key Source:
---- BEGIN SSH2 PUBLIC KEY ----
Comment: RSA Public Key
AAAAB3NzaC1yc2EAAAABIwAAAIEAss56Hdyyzy0Evy6MW3e2txfRcnIkuXHG
3iwanxDcTGVJE3bn4xxpzq2iCkgSC0jOTq3UgQmxy4CKH0GvCHWi+AwtFox7
bmPliM7jEboWnjaeEeJFyJ75hNLWjfT0R1mSJdpB4m0t2dgv+ve5MhFUZtcj
mfHC19anASDHEPB+rMc=
---- END SSH2 PUBLIC KEY ----
Public Key Fingerprint: 11:d4:3f:76:a3:ab:dc:e4:28:e4:a6:70:6f:e2:b5:35
Example 2. The following example displays the authentication method and DSA
private key in encrypted format:
switchxxxxxx
# show ip ssh-client key DSA
Authentication method:
John
User Defined
DSA key
78-21075-01 Command Line Interface Reference Guide
SSH Client Commands