< Home

A User Cannot Log In to the Device Through Telnet When AAA Local Authentication Is Used

Fault Description

After local authentication is used, a user cannot log in to the device through Telnet.

Common Causes

  1. The user does not have an account on the device.
  2. The user name or password entered by the user is incorrect.
  3. No authentication mode is configured for the user interface.

Procedure

  1. Run the display this command in the AAA view to check whether the user has an account on the device.

    <HUAWEI> system-view
    [HUAWEI] aaa
    [HUAWEI-aaa] display this
    #
    aaa                                                                             
     local-user user1 password irreversible-cipher $1a$+:!j;\;$Z!$&%}p%ctzj"W`GM;APoC=XPLB=L-vJG3-'3Dhyci;$  //The user name is user1, and displayed on the screen in cipher text. The authentication password entered by the user is displayed in plain text.
    # 
    
    • If the user does not have an account on the device, run the local-user user-name password irreversible-cipher password command in the AAA view to create a local user.

    • If the user has an account on the device, ensure that the user name and password entered by the user are the same as those configured on the device.

      The password is displayed in cipher text on the screen. If you forget the password, run the local-user user-name password irreversible-cipher password command in the AAA view to reconfigure the password.

  2. Run the display this command in the user interface view to check whether the authentication mode is set to aaa.

    If not, run the authentication-mode aaa command in the user interface view, for example, in the VTY user interface view.

    <HUAWEI> system-view
    [HUAWEI] user-interface maximum-vty 15
    [HUAWEI] user-interface vty 0 14
    [HUAWEI-ui-vty0-14] display this
    # 
    user-interface maximum-vty 15
    user-interface vty 0 14
     authentication-mode aaa    
     protocol inbound telnet                                                          
    #
    
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >