#配置telnet-password验证
user-interface vty 0 4
protocol inbound telnet
authentication-mode password
set authentication password cipher Huawei@123
user privilege level 0
#配置telnet-AAA验证
aaa
local-user Huawei password cipher Huawei@123
local-user Huawei privilege level 0
local-user Huawei service-type telnet
user-interface vty 0 4
protocol inbound telnet
authentication-mode aaa
user privilege level 0
#配置SSH-password验证
aaa
local-user Huawei password cipher Huawei@123
local-user Huawei privilege level 0
local-user Huawei service-type ssh
user-interface vty 0 4
protocol inbound ssh
authentication-mode aaa
user privilege level 0
#SSH服务器功能配置
ssh user Huawei authentication-type p
stelnet server enable
rsa local-key-pair create
华为交换机telnet ssh