华为交换机关闭Telnet

1.创建本地RSA密钥对

rsa local-key-pair create

[code]2.配置vty支持的登录协议[/code]

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用户了

THE END
分享
二维码
< <上一篇
下一篇>>