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

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
以登录用户界面的认证方式为密码认证,密码为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时配置

  

posted @   CTF_无白  阅读(1097)  评论(1编辑  收藏  举报
编辑推荐:
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
阅读排行:
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本
· C#/.NET/.NET Core优秀项目和框架2025年2月简报
· Manus爆火,是硬核还是营销?
· 终于写完轮子一部分:tcp代理 了,记录一下
· 【杭电多校比赛记录】2025“钉耙编程”中国大学生算法设计春季联赛(1)
点击右上角即可分享
微信分享提示