Hello,
The error of Authentication failed can refer to any of the requirements for telnet access, not only username and password.
Please check the following points.
Configure
SSH and Telnet for the VTY User Interface
1.
Run:
system-view
The
system view is displayed.
2.
Run:
user-interface [ vty
] first-ui-number [ last-ui-number
]
The
VTY user interface is displayed.
3.
Run:
authentication-mode aaa
The
AAA authentication mode is configured.
4.
Run:
protocol
inbound
all
The
VTY user interface is configured to support SSH and Telnet protocols.
Configure
an SSH User and Specify the Service Types
1.
Run:
system-view
The
system view is displayed.
2.
Run:
ssh user user-name
An
SSH user is created.
If
password authentication is configured for the SSH user, create the same
SSH user in the AAA view
3. Run: ssh user username
service-type
{ stelnet
| all }
The service type of the SSH user is
configured.
Configure the User Access Level and
User Authentication Mode of the VTY User Interface
When the user authentication mode of the
VTY user interface is set to AAA authentication, the access type of the local
user must be specified.
1.
Run: system-view
The system view is displayed.
2.
Run: aaa
The AAA view is displayed.
3.
Run: local-user user-name
password cipher password
A username and password for the local
user are created.
4.
Run: local-user user-name
service-type
telnet ssh terminal
The access type of the local user is set
to Telnet, SSH and console.
5.
Run: quit
You have exited the AAA view.
6.
Run:
user-interface vty first-ui-number [ last-ui-number ]
The VTY user interface view is
displayed.
7.
Run: authentication-mode aaa
The authentication mode is set to AAA
authentication.
Enable the Telnet Service
1. Run: system-view
The system view is displayed.
2. Run: telnet server enable
The Telnet service is enabled.
Enable the STelnet Server Function
1. Run: system-view
The system view is displayed.
2. Run: stelnet [ ipv4 | ipv6 ] server enable
The STelnet server function is enabled.