华为telnet的两种认证方式

华为telnet的两种认证方式

实验拓扑:

实验要求:

1.采用普通密码认证实现telnet 远程登录机房设备R3

2.采用AAA认证服务方式实现telnet 远程登录机房设备R3

实验步骤:

1.完成基本配置(设备接口配置IP,此步骤略过)

sys

Enter system view, return user view with Ctrl+Z.

Huawei\]sys R1 \[R1\]undo in e Info: Information center is disabled. \[R1\]int g0/0/0 \[R1-GigabitEthernet0/0/0\]ip add 10.1.1.1 24 \[R1-GigabitEthernet0/0/0

sys

Enter system view, return user view with Ctrl+Z.

Huawei\]sys R2 \[R2\]undo in e Info: Information center is disabled. \[R2\]int g0/0/0 \[R2-GigabitEthernet0/0/0\]ip add 10.1.1.2 24 \[R2-GigabitEthernet0/0/0

sys

Enter system view, return user view with Ctrl+Z.

Huawei\]sys R3 \[R3\]undo in e Info: Information center is disabled. \[R3\]int g0/0/0 \[R3-GigabitEthernet0/0/0\]ip add 10.1.1.254 24 \[R3-GigabitEthernet0/0/0

2.配置机房设备R3

--------------------------------------第一种认证方式telnet密码认证--------------------------------

R3\]user-interface vty 0 4 \[R3-ui-vty0-4\]authentication-mode password Please configure the login password (maximum length 16):huawei \[R3-ui-vty0-4

3.测试远程登录

telnet 10.1.1.254

Press CTRL_] to quit telnet mode

Trying 10.1.1.254 ...

Connected to 10.1.1.254 ...

Login authentication

Password:

能够通过密码远程登录到机房的设备R3上了,但是却不能做任何事情!

小结:因为只需要密码就能telnet远程登录,无论是R1普通用户还是R2网络管理员,至于登录后不能干什么,只是权限不够,这并不是难事没只需要提升权限即可。但安全的问题还是没有改观。

sys

R3\]user-interface vty 0 4 \[R3-ui-vty0-4\]user privilege level 3 \[R3-ui-vty0-4

总结:只要在机房设备上修改了用户的权限为3级,一个密码,远程登录啥事都能干了!似乎只有密码就没有干不成的事情!

--------------------------------第二种认证方式AAA--------

sys

Enter system view, return user view with Ctrl+Z.

R3\]aaa \[R3-aaa\]local-user zyh password cipher huawei666 privilege level 3 Info: Add a new user. 创建一个新用户zyh 密码huawei666 运行级别3级 \[R3-aaa

R3-aaa\]local-user zyh service-type telnet 配置该用户的服务类型还是telnet \[R3\]user-interface vty 0 4 \[R3-ui-vty0-4\]authentication-mode aaa 这次对机房设备的访问要求用AAA授权模式 \[R3-ui-vty0-4

测试:

经测试,只能有特定的用户才能访问机房的设备R3,单纯靠密码已经无法telnet访问了。安全级别是提升了很多。

相关推荐
大路谈数字化7 分钟前
Centos中内存CPU硬盘的查询
linux·运维·centos
xie_pin_an12 分钟前
网络原理与编程实战:从 TCP/IP 到 HTTP/HTTPS
网络·tcp/ip·http
teeeeeeemo20 分钟前
如何做HTTP优化
前端·网络·笔记·网络协议·http
weisian15125 分钟前
HTTP协议-4-浏览器是怎么抉择HTTP版本的?
网络·网络协议·http
TeleostNaCl1 小时前
OpenWrt 编译 | 一种使用 git submodule 方式实现一键更新多个外部软件包
网络·经验分享·git·智能路由器
赏点剩饭7782 小时前
linux中的hostpath卷、nfs卷以及静态持久卷的区别
linux·运维·服务器
神鸟云2 小时前
DELL服务器 R系列 IPMI的配置
linux·运维·服务器·网络·边缘计算·pcdn
herderl3 小时前
**僵尸进程(Zombie Process)** 和**孤儿进程(Orphan Process)**
linux·运维·服务器·网络·网络协议
亲爱的非洲野猪3 小时前
令牌桶(Token Bucket)和漏桶(Leaky Bucket)细节对比
网络·算法·限流·服务