华为S5700交换机开启Telnet和SSH服务
实验topo:
Colud设置如下图:
一、开启Telnet服务
<Huawei> system-view
[Huawei] vlan 10
[Huawei-vlan10]quit
[Huawei]interface Vlanif 10
[Huawei-Vlanif10]ip address 192.168.102.2 255.255.255.0
[Huawei-Vlanif10]]quit
[Huawei]interface GigabitEthernet 0/0/1
[Huawei-GigabitEthernet0/0/1]port hybrid pvid vlan 10
[Huawei-GigabitEthernet0/0/1]port hybrid untagged vlan 10
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode password
[Huawei-ui-vty0-4]set authentication password cipher ******
[Huawei-ui-vty0-4]user privilege level 3
二、开启SSH服务
Huawei> system-view
[Huawei] vlan 10
[Huawei-vlan10]quit
[Huawei]interface Vlanif 10
[Huawei-Vlanif10]ip address 192.168.102.3 255.255.255.0
[Huawei-Vlanif10]quit
[Huawei]aaa
[Huawei-aaa]local-user huawei password cipher ****** privilege level 3
[Huawei-aaa]quit
[Huawei]user-interface vty 0 4
[Huawei-ui-vty0-4]authentication-mode aaa
[Huawei-ui-vty0-4]protocol inbound ssh
[Huawei-ui-vty0-4]quit
[Huawei]rsa local-key-pair create
[Huawei]stelnet server enable
[Huawei]ssh user huawei authentication-type password
[Huawei]ssh user huawei service-type stelnet