<Sysname> system-view [Sysname] user-interface vty 1

[Sysname-ui-vty1] authentication-mode scheme

[Sysname-ui-vty1] quit [Sysname] local-user test

[Sysname-luser-test] password cipher 12345678

[Sysname-luser-test] service-type telnet

When users telnet to the switch through VTY 1, they need to input username test and password 12345678. After passing authentication, the users can only use level 0 commands. If the users want to use commands level 0, 1, 2 and 3 commands, the following configuration is required:

[Sysname-luser-test] authorization-attribute level 3

Configure the user privilege level under a user interface

If the user interface authentication mode is scheme, and SSH publickey authentication type (only a username is needed for this authentication type) is adopted, the user privilege level of users logging into the user interface is the user interface level.

If the user interface authentication mode is none or password, the user privilege level of users logging into the user interface is the user interface level.

Follow these steps to configure the user privilege level under a user interface (SSH publickey authentication type):

To do…

Use the command…

Remarks

Configure the authentication type

For more information about SSH,

see the Security Configuration

for SSH users as publickey

Guide.

 

Required if the SSH login mode is adopted, and only username is needed during authentication.

After the configuration, the authentication mode of the corresponding user interface must be set to scheme.

Enter system view

system-view

 

 

 

 

user-interface { first-num1

 

Enter user interface view

[ last-num1 ] vty first-num2

 

[ last-num2 ] }

 

 

 

 

 

 

Required

Configure the authentication mode

 

By default, the authentication

for any user that uses the current

authentication-mode scheme

mode for VTY users is password,

user interface to log in to the switch

 

and no authentication is needed

 

 

for AUX users.

 

 

 

 

 

Optional

Configure the privilege level for

 

By default, the user privilege level

 

for users logged in through the

users that log in through the current

user privilege level level

AUX user interface is 3, and that

user interface

 

 

for users logged in through the VTY

 

 

 

 

interfaces is 0.

 

 

 

Follow these steps to configure the user privilege level under a user interface (none or password authentication mode):

15