331
Syntax
display ssh user-information
[
username
] [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Views
Any view
Default command level
1: Monitor level
Parameters
username
: Specifies an SSH username, a string of 1 to 80 characters. If no SSH user is specified,
this command displays information about all SSH users.
|
: 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.
Usage guidelines
This command displays only information about SSH users configured by using the
ssh user
command on the SSH server.
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 stelnet
test publickey pubkey sftp
Table 53 Command output
Field Description
Username
Name of the user.
Authentication-type
Authentication method:
•
Password
authentication.
•
Publickey
authentication.
•
Password-publickey
authentication.
•
Any
authentication.
User-public-key-name
Public key of the user or name of the PKI domain which verifies the client
certificate. If password authentication is used, the public key of the user
displays
null
.
Service-type
Service type: SFTP, Stelnet, SCP, and all. If all authentication methods
are supported, this field displays
all
.
Related commands
ssh user