Step 1 Configure LS-S5328C-EI-24S the maximum number of
concurrent VTY user interfaces.
<HUAWEI> system-view
[HUAWEI] user-interface maximum-vty 8
Step 2 Configure restrictions on call-in and
call-out permissions on the VTY user interface.
[HUAWEI] acl 2000
[HUAWEI-acl-basic-2000] rule deny source
10.1.1.1 0
[HUAWEI-acl-basic-2000] rule permit source any
[HUAWEI-acl-basic-2000] quit
[HUAWEI] user-interface vty 0 7
[HUAWEI-ui-vty0-7] acl 2000 inbound
Step 3 Configure terminal attributes on the VTY
user interface.
[HUAWEI-ui-vty0-7] shell
[HUAWEI-ui-vty0-7] idle-timeout 30
[HUAWEI-ui-vty0-7] screen-length 30
[HUAWEI-ui-vty0-7] history-command max-size 20
Step 4 Configure the user level on the VTY user
interface.
[HUAWEI-ui-vty0-7] user privilege level 15
Step 5 Configure the authentication mode and
password of the VTY user interface.
[HUAWEI-ui-vty0-7] authentication-mode password
[HUAWEI-ui-console0] set authentication
password cipher huawei2012
[HUAWEI-ui-vty0-7] quit
After the VTY user interface is configured,
users can log in to the device in the password
authentication mode using Telnet to maintain
the device locally or remotely. For details on how
to log in to the device see Logging In to the
Device Through Telnet.
Step 6 Verify the configuration.
# Run the quit command to disconnect the
terminal from the device, connect the terminal to the
device using Telnet, and verify that the new
password is valid.
# Use 10.1.1.1 to log in to the device using
Telnet. The login fails.
# Run the user-interface vty 0 7 command to
enter the VTY interface view, and run the display
this command to check the configurations on the
VTY interface.
[HUAWEI] user-interface vty 0 7
[HUAWEI-ui-console0] display this
#
user-interface maximum-vty 8
user-interface vty 0 7
acl 2000 inbound
authentication-mode password
user privilege level 15
set authentication password cipher
%%$%$RdF~Z+6N|0d^a3%v5`W~3.%ymjpAD#$u
[T'e#e32hd8G~4+&%$%$
history-command max-size 20
idle-timeout 30 0
screen-length LS-S5352C-EI 30
#
没有评论:
发表评论