ECS4100 Series CLI Reference Guide-R07

Table Of Contents
Chapter 8
| Authentication Commands
Secure Shell
– 270 –
show public-key This command shows the public key for the specified user or for the host.
Syntax
show public-key [user [username]| host]
username – Name of an SSH user. (Range: 1-32 characters)
Default Setting
Shows all public keys.
Command Mode
Privileged Exec
Command Usage
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.
Example
Console#show public-key host
Host:
RSA:
-----BEGIN RSA PUBLIC KEY-----
MIIBCgKCAQEAspl/UuyjRJzxtmsLQUc28rtCzK0zxV4SACwLE4jPdJacX7yIMgyD
P+6wcj6QhZ5LYTByYLtgZ8OpvhgcTcLbOPp/LWEgII+ntzUiJGIqgXgggZtWWsTp
XC9WXgHzknKAvfI0zk2Ec/x4ryvSlWazEb0ygnozDPc8ZRV2iST+nzAKSCb3Oii3
SmpGk/NOzFK4OK3ouX1692PfB64QSDXyi1BcmR0nMU943xC/F8JPtLKxQLiZSnSa
Ef1dcbOIXHKd7dedw4MauUhzDznIawAEu6R4d2HSjxDM9pOIio8he860+S8gpBSN
9kSgNXU7o3BarVvYZo2hPaEOLAFBv+tklQIDAQAB
-----END RSA PUBLIC KEY-----
Console#
show ssh This command displays the current SSH server connections.
Command Mode
Privileged Exec
Example
Console#show ssh
Connection Version State Username Encryption
1 2.0 Session-Started admin ctos aes128-cbc-hmac-md5
stoc aes128-cbc-hmac-md5
Console#