display ssh user-information
Syntax
display ssh user-information [ username ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
username: Specifies an SSH username, a string of 1 to 80 characters.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display ssh user-information on an SSH server to display information about SSH users.
This command displays only information about SSH users configured through the ssh user command on the SSH server.
Without the username argument, the command displays information about all SSH users.
Related commands: ssh user.
Examples
# Display information about all SSH users.
<Sysname> display ssh user-information Total ssh users : 2 Username Authentication-type User-public-key-name Service-type yemx password null all test publickey pubkey sftp
Table 41: Command output
Field | Description |
---|---|
Username | Name of the user. |
Authentication-type | Authentication method. If this field has a value of password, the next field has a value of null. |
User-public-key-name | Public key of the user. |
Service-type | Service type, including SFTP, Stelnet, SCP, and all, where all indicates all authentication methods are supported. |