
14
In VTY line view, this command is associated with the
protocol inbound
command. If you specify a
non-default value for only one of the two commands in VTY line view, the other command uses the
default setting, regardless of the setting in VTY line class view.
Examples
# Enable the
none
authentication mode for user line VTY 0.
<Sysname> system-view
[Sysname] line vty 0
[Sysname-line-vty0] authentication-mode none
# Enable password authentication for user line VTY 0 and set the password to
321
.
<Sysname> system-view
[Sysname] line vty 0
[Sysname-line-vty0] authentication-mode password
[Sysname-line-vty0] set authentication password simple 321
# Enable scheme authentication for user line VTY 0. Configure local user
123
and set the password
to
321
. Assign the Telnet service and the user role network-admin to the user.
<Sysname> system-view
[Sysname] line vty 0
[Sysname-line-vty0] authentication-mode scheme
[Sysname-line-vty0] quit
[Sysname] local-user 123
[Sysname-luser-manage-123] password simple 321
[Sysname-luser-manage-123] service-type telnet
[Sysname-luser-manage-123] authorization-attribute user-role network-admin
Related commands
set authentication password
auto-execute command
CAUTION:
After configuring this command for a user line, you might be unable to access the CLI through the
user line. Make sure you can access the CLI through a different user line before you configure this
command and save the configuration.
Use
auto-execute command
to specify a command that is automatically executed when a user logs
in through the current user line.
Use
undo auto-execute command
to remove the configuration.
Syntax
auto-execute command command
undo auto-execute command
Default
Command auto-execution is disabled.
Views
User line view, user line class view
Predefined user roles
network-admin