H3C how to set up local and remote access login password

First, log on locally

1. Simply enter password to login

[SwitchA]user-interface aux 0   #进入用户界面视图

[SwitchA-line-aux0]authentication-mode password   #设置认证方式为密码验证方式

[SwitchA-line-aux0]set authentication password simple huawei   #设置登陆验证的password为明文密码”huawei”

[SwitchA-line-aux0]user-role network-admin #配置登陆用户的级别为管理员权限

Note: If you do not change after the scheme mode, exit could not land

2. The need to enter the username and password can log in

[SwitchA]user-interface aux 0   #进入用户界面视图

[SwitchA-ui-aux0] authentication-mode scheme   #配置本地用户名和口令认证

[SwitchA-ui-aux0] set authentication password simple huawei   #设置登陆验证的password为明文密码”huawei”

配置本地TELNET用户,用户名为”huawei”,密码为”huawei”,权限为最高级别3(缺省为级别1)

[SwitchA]local-user huawei

[SwitchA-user-huawei]password simple huawei

[SwitchA-user-huawei]service-type telnet level 3

Second, remote login

1. Simply enter password to login

[SwitchA]user-interface vty 0 4   #进入用户界面视图

[SwitchA-ui-vty0-4]authentication-mode password   #设置认证方式为密码验证方式

[SwitchA-ui-vty0-4]set authentication password simple huawei   #设置登陆验证的password为明文密码”huawei”

[SwitchA-ui-vty0-4]user privilege level 3   #配置登陆用户的级别为最高级别3(缺省为级别1)

[SwitchA]telnet server enable   #开启telnet服务

2. The need to enter the username and password can log in

[SwitchA]user-interface vty 0 4   #进入用户界面视图

[SwitchA-ui-vty0-4]authentication-mode scheme   #配置远端用户名和口令认证

[SwitchA-ui-vty0-4]protocol inbound telnet   #选择登录方式为telnet

[SwitchA]local-user huawei   #配置本地TELNET用户,用户名为”huawei”

[SwitchA-user-huawei]password simple huawei   #密码为”huawei”

[SwitchA-user-huawei]service-type telnet level 3   #权限为最高级别3(缺省为级别1)
注:上述命令为v5修改权限,v7修改如:[SwitchA-user-huawei]authorization-attribute user-role level-3

[SwitchA-user-huawei]service-type telnet   #服务类型为telnet

[SwitchA]telnet server enable   #开启telnet服务

Guess you like

Origin blog.csdn.net/qq_43344642/article/details/89973027