[计算机网络]ensp端口安全
交换机
user-interface console 0
authentication-mode password
set authentication password simple Huawei
idle-timeout 30
user-interface vty 0 4
protocol inbound telnet
authentication-mode password
set authentication password simple Huawe1
user privilege level 15
idle-timeout 30 40
端口安全
interface Eth0/0/1
port-security enable
port-security max-mac-num 3
port-security mac-address sticky
port-security mac-address sticky 5489-98A3-1993 vlan 1
port-security protect-action shutdown
port-group 1
group-member e0/0/1 e0/0/3 e0/0/7 to e0/0/9 \\将e0/0/1、e0/0/3、e0/0/7、e0/0/8和e0/0/9加入到本端口组,对端口组执行的命令会同步执行在该端口组内的所有端口上。
在AR上配置VTY
rsa local-key-pair create
stelnet server enable
user-interface vty 0 4
protocol inbound ssh
authentication-mode aaa
idle-timeout 30 40
aaa
local-user sziit password simple sziit
local-user sziit service-type ssh
local-user sziit privilege level 15
quit
ssh user sziit authentication-type password
测试SSH
ssh client first-time enable
stelnet ip
本文作者:SkyBiuBiu
本文链接:https://www.cnblogs.com/Skybiubiu/p/12450004.html
版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步