华为S5700交换机初始化和配置telnet,ssh用户方法
通过串口线配置S5700 的管理IP地址和网关,串口线接在交换机的console口,ip设置完成后网线接在ETH口:
 
 [Quidway] interface Meth 0/0/1          
 [Quidway-Meth0/0/1]ip address x.x.x.x 255.255.255.0
 [Quidway-Meth0/0/1]quit
 [Quidway]ip route-static 0.0.0.0 0.0.0.0 x.x.x.x(gateway)
 [Quidway]
设置telnet登录S5700(eg.设置用户名admin密码112233):
 
 [Quidway] user-interface vty 0 4
 [Quidway-ui-vty0-4] authentication-mode aaa
 [Quidway-ui-vty0-4]protocal inbound all
 [Quidway-ui-vty0-4] user privilege level 15
 [Quidway-ui-vty0-4]quit
 [Quidway]telnet server enable
 [Quidway] aaa
 [Quidway-aaa] local-user admin password simple 112233
 [Quidway-aaa] local-user admin service-type telnet
 [Quidway-aaa] local-user admin privilege level 15
 [Quidway-aaa] quit
设置SSH登录5700(eg.设置用户名admin密码112233):
 [Quidway]rsa local-key-pair create
 The key name will be: Quidway_Host
 % RSA keys defined for Quidway_Host already exist.
 Confirm to replace them? [y/n]:y
 The range of public key size is (512 ~ 2048).
 NOTES: If the key modulus is greater than 512,
        it will take a few minutes.
 Input the bits in the modulus[default = 512]:
 Generating keys...
 ...........++++++++++++
 ......++++++++++++
 ..........++++++++
 ...............++++++++
 [Quidway] aaa
 [Quidway-aaa] local-user admin password simple 112233
 [Quidway-aaa] local-user admin service-type ssh
 [Quidway-aaa] local-user admin privilege level 15
 [Quidway-aaa] quit
 [Quidway] stelnet server enable
 Info: Succeeded in starting the Stelnet server.
 [Quidway] ssh authentication-type default password
 [Quidway]quit