华为交换机 consolep密码和vty密码配置telnet,ssh

以登录用户界面的认证方式为密码认证,密码为Huawei@123为例,配置如下。

<HUAWEI> system-view
[HUAWEI] user-interface console 0
[HUAWEI-ui-console0] authentication-mode password
[HUAWEI-ui-console0] set authentication password cipher Huawei@123
[HUAWEI-ui-console0] return<HUAWEI> save

以登录用户界面的认证方式为AAA认证,用户名为admin123,密码为Huawei@123为例,配置如下。

<HUAWEI> system-view
[HUAWEI] user-interface console 0
[HUAWEI-ui-console0] authentication-mode aaa
[HUAWEI-ui-console0] quit
[HUAWEI] aaa
[HUAWEI-aaa] local-user admin123 password irreversible-cipher Huawei@123
[HUAWEI-aaa] local-user admin123 service-type terminal
[HUAWEI-aaa] return
<HUAWEI> save

#配置vty

[HUAWEI]user-interface vty 0 4  (进入vty用户界面)
[HUAWEI-ui-vty0-4]authentication-mode ?
        none:不验证
        password:密码验证
        aaa:AAA验证

(设置密码验证的密码)

[HUAWEI-ui-vty0-4]set authentication passowrd{cipher\simple}
cipher:加密的
simple:简单的

(设置AAA验证)

[HUAWEI-ui-vty0-4]authentication-mode aaa

进入系统试图

[HUAWEI-ui-vty0-4]aaa      //进入AAA视图
[HUAWEI-aaa]local-user
[HUAWEI-aaa]local-user  service-type ssh  配置接入类型为SSH
[HUAWEI]rsa local-key-pair create 产生本地rsa秘钥,进行SSH时配置

参考链接 :

华为交换机 consolep密码和vty密码配置telnet,ssh :https://mp.weixin.qq.com/s/N3upWAHV9oYv9KJ772zJMQ

  • 3
    点赞
  • 34
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值