16
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 SSH users as
publickey
For more information, see
Security
Configuration 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
—
Enter user interface view
user-interface
{
first-num1
[
last-num1
] |
vty
first-num2
[
last-num2
] }
—
Configure the authentication mode
for any user that uses the current
user interface to log in to the switch
authentication-mode
scheme
Required
By default, the authentication
mode for VTY users is
password
,
and no authentication is needed
for AUX users.
Configure the privilege level for
users that log in through the current
user interface
user privilege level
level
Optional
By default, the user privilege level
for users logged in through the
AUX user interface is 3, and that
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):
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter user interface view
user-interface
{
first-num1
[
last-num1
] | {
aux
|
vty
}
first-num2
[
last-num2
] }
—
Configure the authentication mode
for any user that uses the current
user interface to log in to the switch
authentication-mode
{
none
|
password
}
Optional
By default, the authentication
mode for VTY user interfaces is
password
, and no authentication is
needed for AUX login users.
Configure the privilege level of
users logged in through the current
user interface
user privilege level
level
Optional
By default, the user privilege level
for users logged in through the
AUX user interface is 3, and that
for users logged in through the VTY
interfaces is 0.
Example for configuring a user privilege level under a user interface
# Perform no authentication on users logged in to the switch through Telnet, and specify their privilege
level as 1. (Use no authentication mode in a secure network environment.)