26
Figure 5 Telnetting to the device without authentication
Configuring password authentication for Telnet login
Ste
Command
Remarks
1. Enter system view.
system-view N/A
2. Enable Telnet server.
telnet server enable
By default, the Telnet server function is
disabled.
3. Enter VTY line view or
class view.
• To enter VTY line view:
line vty first-number [ last-number ]
• To enter VTY line class view:
line class vty
Use either command.
A setting in user line view is applied
only to the user line. A setting in user
line class view is applied to all user lines
of the class.
A non-default setting in either view takes
precedence over a default setting in the
other view. A non-default setting in user
line view takes precedence over a
non-default setting in user line class
view.
A setting in user line view takes effect
immediately and affects the online user.
A setting in user line class view does not
affect online users and takes effect only
for users who log in after the
configuration is completed.
4. Enable password
authentication.
authentication-mode password
By default, password authentication is
enabled for VTY lines.
In VTY line view, this command is
associated with the protocol inbound
command:
• If the setting of either command is
not the default in VTY line view, the
setting of the other command in VTY
line view takes effect.
• If the settings of both commands are
the defaults in VTY line view, the
settings of the commands in VTY line
class view take effect.
5. Set a password.
set authentication password { hash |
simple } password
By default, no password is set.
6. (Optional.) Assign a
user role.
user-role role-name
By default, a VTY line user is assigned
the user role network-operator.