[华为设备] 配置console线路密码

0x0 管理方式的介绍

1.设备管理方式有几种?
两种:本地管理、远程管理

2.这两种管理方式分别使用什么线路?
本地管理使用console线路
远程管理使用vty线路

0x1 console认证模式分类

authentication-mode ? aaa 进入设备的时候首先输入用户名再输入密码
authentication-mode ? password 只需要输入密码就可以登录

0x2 设置认证模式为password

系统模式下:
user-interface console 0 // 进入console模式
authentication-mode password // 选择认真模式password

0x3 设置认证模式为aaa

系统模式下:
user-interface console 0 // 进入console模式
authentication-mode aaa // 选择认真模式aaa

创建aaa用户:
aaa //进入aaa模式
local-user user0 password cipher huawei

赋予不同权限等级
local-user user0 privilege level 15
//给user0 配置0级权限,无法进入系统模式,权限15级

配置服务类型
local-user user0 service-type terminal

注:默认情况下设备厂商已经配置好了console,不需要自己配置,如果要配置请把权限放大些,不然配置ssh不能超过个console的权限。

发布了39 篇原创文章 · 获赞 30 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/weixin_42728126/article/details/86773643