1、SSH 服务器配置:sysHuaweiundo info enHuaweisys S1S1int vlan 1S1-Vlanif1ip add 192.168.1.1 24S1-Vlanif1qS1rsa local-key-pair createThe key name will be: S1_HostThe 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
2、default = 512:1024Generating keys.+.+S1user-interface vty 0 4S1-ui-vty0-4authentication-mode aaaS1-ui-vty0-4protocol inbound sshS1-ui-vty0-4qS1aaaS1-aaalocal-user admin password cipher adminS1-aaalocal-user admin service-type sshS1-aaalocal-user admin privilege level 15S1-aaaqS1ssh user admin authen
3、tication-type passwordS1ssh user admin service-type stelnet /路由器不需要此命令,也没有此命令S1stelnet server enInfo: Succeeded in starting the Stelnet server.SSH 客户端配置:sysEnter system view, return user view with Ctrl+Z.Huaweisys S2S2undo info enInfo: Information center is disabled.S2int vlan 1S2-Vlanif1ip add 192.168.1.2 24S2-Vlanif1qS2ssh client first-time enS2stelnet 192.168.1.1