385
Parameters
username: Specifies an SSH username, a case-sensitive string of 1 to 80 characters. If no SSH user is
specified, this command displays information about all SSH users.
Usage guidelines
This command only displays 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|SFTP
test publickey pubkey SFTP
Table 50 Command output
Field Descri
tion
Total ssh users Total number of SSH users.
Authentication-type
Authentication methods:
• Password authentication.
• Publickey authentication.
• Password-publickey authentication.
• Any authentication.
User-public-key-name
Public key name of the user. If password authentication is used, this field
displays null.
Service-type
Service types: Stelnet, SFTP, and SCP.
If multiple service types are available for an SSH user, they are displayed,
separated by vertical bars (|).
Related commands
ssh user
sftp server enable
Use sftp server enable to enable the SFTP server function.
Use undo sftp server enable to disable the SFTP server function.
Syntax
sftp server enable
undo sftp server enable
Default
The SFTP server function is disabled.
Views
System view