show user

Syntax

show user <USERNAME> authorized-key

Description

Shows the SSH client public key list for a specified user.

Command context

Operator (>) or Manager (#)

Parameters

<USERNAME>

Specifies the username for which you want to show the SSH client public key list.

Authority

Operators or Administrators. Users without administrator authority can execute this command from the operator context (>) only.

Usage

Any user can show their own public key list; however, administrators can also show a public key list of other users.

Examples

Showing a client public key:

switch# show user admin authorized-key

1. Key Type : RSA     Key size : 2048
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDMtyMBmmAaF6r1zxf3DZNHSYVHBJhlbBlyAIqQ8DSHKOa0zRFptN8RS1x8DKnJUCXqgw
VDjQSxfsCZc03DA+0DKRV37Kh8A0/SSm8l3xoe1z+ptXjnpWT61Q/y2vsIwn+LYYc3Q+EZWgFyO+CahrnU+aE14UFTzW/ifIukmK6O7sBI
EbHwK+FIhhRiYwIPlBzAtQxc5tpjyOPk41284pDgKQaHCcOu8+WTNK04ksYKwYkrOoaTYipyVmfk1kIWGO0Ki7a4JaaTnehHY22Qoj98GS
TRI1X3VPXtVm4cuq0jPyS3reOy9S+y8xPA5KUE4VGsVvvCRDDRTCp8OCNF169Z admin@switch

Showing two client public keys:

switch# show user admin authorized-key
1. Key Type : ECDSA     Curve : nistp256
ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBEqEFevZ0l76V+D0svdCJ9Wo32zqI9OeA
IdTJwT/eZYp50qkAnhZNgS81HBjAI6QJ/4/kAyqdZ9oAjbiqQUiCAk= admin@switch

2. Key Type : RSA     Key size : 2048
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDXQHrqV7+/GcMdOhr//IRjJkX7TQKupW89j80bL7xq8j8qKuHWSN0/h/HxmjzQJuYD
IuynDsiIuxiEr434Y1npfmd9dYzYul3/bApfCF/icmraGC0IxHZcwc03pbU16L9o1tlkIFczWmPAoxQCDLHyZx16zm9l8w10ZW/GkFRO
B5iiqN0PENCnpNX7tZxTm0avzJvhyNVRJsJkBs8ncXVFxQB+WMfdqKB5VbDRkO9QWWn2iy15WdtLt4ZyJIrAn2ruM09LD4LkiNwAIICH
qaZF1GAv8Sxli8G9afZU3oyVymZN5vG3DhmpXxbBZUlZxNnchVodm1P3QLCesqA3VLKN admin@switch