华为交换机关闭Telnet

  • A+
所属分类:Linux

1.创建本地RSA密钥对

rsa local-key-pair create

2.配置vty支持的登录协议
user-interface vty 0 4 
authentication-mode aaa 
protocol inbound all {ssh | all} 
quit

3.创建用户(因交换机无法重命名admin,此处也可新建账户)
ssh user admin
ssh user admin authentication-type password

4.AAA
aaa
local-user admin password //如不想修改原来telnet密码,此步骤可以省略
local-user admin service-type ssh
local-user admin service-type http
quit

5.配置stelnet
ssh user admin service-type stelnet
stelnet server enable
quit
save

6.切换到ssh,关闭telnet
sys
undo telnet server enable

7.删除admin
aaa
local-user newuser privilege level 15
save

登录web界面就可以删除了admin用户了

avatar

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: