User`s manual

User’s Manual 317
Console#
16.182 show public-key
Use this command to show the public key for the specified user or for the host.
Syntax Description
show public-key [user [username]| host]
username Name of an SSH user. (Range: 1-8 characters)
Default
Shows all public keys.
Command Mode
Privileged Exec
Usage Guidelines
If no parameters are entered, all keys are displayed. If the user keyword is entered, but no user name is
specified, then the public keys for all users are displayed.
When an RSA key is displayed, the first field indicates the size of the host key (e.g., 1024), the second field
is the encoded public exponent (e.g., 35), and the last string is the encoded modulus. When a DSA key is
displayed, the first field indicates that the encryption method used by SSH is based on the Digital Signature
Standard (DSS), and the last string is the encoded modulus.
Example
The following is sample output from the show public-key command.
Console#show public-key host
Host:
RSA:
1024 35
1568499540186766925933394677505461732531367489083654725415020245593199868544358
3616519999233297817660658309586108259132128902337654680172627257141342876294130
1196195566782595664104869574278881462065194174677298486546861571773939016477935
594230357741309802273708779454524083971752646358058176716709574804776117
DSA:
ssh-dss AAAB3NzaC1kc3MAAACBAPWKZTPbsRIB8ydEXcxM3dyV/yrDbKStIlnzD/Dg0h2Hxc
YV44sXZ2JXhamLK6P8bvuiyacWbUW/a4PAtp1KMSdqsKeh3hKoA3vRRSy1N2XFfAKxl5fwFfv
JlPdOkFgzLGMinvSNYQwiQXbKTBH0Z4mUZpE85PWxDZMaCNBPjBrRAAAAFQChb4vsdfQGNIjwbvwrNL
aQ77isiwAAAIEAsy5YWDC99ebYHNRj5kh47wY4i8cZvH+/p9cnrfwFTMU01VFDly3IR
2G395NLy5Qd7ZDxfA9mCOfT/yyEfbobMJZi8oGCstSNOxrZZVnMqWrTYfdrKX7YKBw/Kjw6Bm
iFq7O+jAhf1Dg45loAc27s6TLdtny1wRq/ow2eTCD5nekAAACBAJ8rMccXTxHLFAczWS7EjOy
DbsloBfPuSAb4oAsyjKXKVYNLQkTLZfcFRu41bS2KV5LAwecsigF/+DjKGWtPNIQqabKgYCw2
o/dVzX4Gg+yqdTlYmGA7fHGm8ARGeiG4ssFKy4Z6DmYPXFum1Yg0fhLwuHpOSKdxT3kk475S7 w0W
Console#