display ssh user-information

Function

The display ssh user-information command displays the configuration of all the SSH users.

Format

display ssh user-information [ user-name ]

Parameters

Parameter Description Value
user-name

Specifies the name of an SSH user.

The value is a string of 1 to 253 case-insensitive characters, spaces not supported.

When quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

3: Management level

Task Name and Operations

Task Name Operations
ssh-server read

Usage Guidelines

If a user uses SSH to log in to a device and RSA or DSA or ECC mode for authentication, you can run the display ssh user-information command to check whether the user information is correct, including the user name, password, RSA or DSA or ECC public key, and service type.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display the configuration of the SSH user client001.
<HUAWEI> display ssh user-information client001
--------------------------------------------------------------------------------
User Name             : client001
Authentication-Type   : password-ecc
User-public-key-name  : --
User-public-key-type  : --
Sftp-directory        : --
Service-type          : stelnet | sftp | snetconf
--------------------------------------------------------------------------------
Total 1, 1 printed
# Display the configurations of all the SSH users.
<HUAWEI> display ssh user-information
----------------------------------------------------
User Name               : client001
Authentication-type     : password-ecc
User-public-key-name    : --
User-public-key-type    : --
Sftp-directory          : --
Service-type            : stelnet | sftp | snetconf

User Name               : client002
Authentication-type     : rsa
User-public-key-name    : --
User-public-key-type    : --
Sftp-directory          : --
Service-type            : --
----------------------------------------------------
Total 2, 2 printed
Table 1 Description of the display ssh user-information command output
Item Description
User Name

Name of SSH users.

User-public-key-name

RSA or DSA or ECC public key assigned to SSH users.

You are advised to use a more secure ECC authentication algorithm for higher security.

User-public-key-type

Type of the public key allocated to the SSH user:

  • RSA: indicates that the type is RSA.
  • DSA: indicates that the type is DSA.
  • ECC: indicates that the type is ECC.
  • -: indicates that no public key type is specified.

You are advised to use a more secure ECC authentication algorithm for higher security.

Sftp-directory

SFTP authorization directory of the SSH user.

Service-type

Service type of SSH users:

  • snetconf: indicates that the service type is SNetConf.
  • stelnet: indicates that the service type is STelnet.
  • sftp: indicates that the service type is SFTP.
  • -: indicates that no service type is specified.
Authentication-type

Authentication mode of SSH users:

  • rsa.
  • dsa.
  • ecc.
  • password.
  • password-rsa.
  • password-dsa.
  • password-ecc.
  • sm2.
  • password-sm2.
  • all.

You are advised to use a more secure ECC authentication algorithm for higher security.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >